2021-11-23 00:22:17 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
2021-11-23 23:11:53 +08:00
|
|
|
using Sirenix.OdinInspector;
|
2021-11-23 00:22:17 +08:00
|
|
|
|
2021-11-23 23:11:53 +08:00
|
|
|
// ...............................
|
|
|
|
// .......................@@`.....
|
|
|
|
// ........................@@@....
|
|
|
|
// ........................,@@@`..
|
|
|
|
// .........................=@@@..
|
|
|
|
// ..........................@@@\.
|
|
|
|
// ..........................=@@@.
|
|
|
|
// ...........................@@@^
|
|
|
|
// ...........................@@@^
|
|
|
|
// ............,@@\..........=@@@.
|
|
|
|
// ........,@@@@@@@\.........@@@/.
|
|
|
|
// ......]@@@@`.\@@@@\...../@@@@..
|
|
|
|
// ...,O@@@/.....,@@@@@@@@@@@@/...
|
|
|
|
// ..@@@@/.........,@@@@@@@@/.....
|
|
|
|
// ..\@/................[.........
|
|
|
|
// ...............................
|
2021-11-23 00:22:17 +08:00
|
|
|
|
|
|
|
public class Sickle : MonoBehaviour
|
|
|
|
{
|
2021-11-23 23:11:53 +08:00
|
|
|
[ReadOnly][BoxGroup("信息")]
|
|
|
|
public int dir;
|
|
|
|
[BoxGroup("信息")]
|
|
|
|
public float speed = 10f;
|
2021-11-23 00:22:17 +08:00
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
2021-11-23 23:11:53 +08:00
|
|
|
Move();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Move()
|
|
|
|
{
|
|
|
|
transform.position = transform.position +=
|
|
|
|
new Vector3(//x
|
|
|
|
speed * Time.deltaTime * dir,
|
|
|
|
//y//z
|
|
|
|
0,0);
|
2021-11-23 00:22:17 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|