Inheritance: Photon.MonoBehaviour
    private string sendAniName = ""; //发送的动画

    #endregion Fields

    #region Methods

    void Awake()
    {
        correctPlayerPos = this.transform.position;
        correctPlayerRot = this.transform.eulerAngles;
        moveByKeys = this.GetComponent<MoveByKeys>();
        moveByKeys.enabled = false;
    }
Ejemplo n.º 2
0
 void Start()
 {
     targetPos = this.transform.position;
     targetRot = this.transform.eulerAngles;
     photonView = this.GetComponent<PhotonView>();
     moveByKeys = this.GetComponent<MoveByKeys>();
     moveByKeys.enabled = false;
 }