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