private string sendAniName = ""; //发送的动画 #endregion Fields #region Methods void Awake() { correctPlayerPos = this.transform.position; correctPlayerRot = this.transform.eulerAngles; moveByKeys = this.GetComponent<MoveByKeys>(); moveByKeys.enabled = false; }
void Start() { targetPos = this.transform.position; targetRot = this.transform.eulerAngles; photonView = this.GetComponent<PhotonView>(); moveByKeys = this.GetComponent<MoveByKeys>(); moveByKeys.enabled = false; }