示例#1
0
 // Start is called before the first frame update
 private void Start()
 {
     if (photonView.IsMine)
     {
         playerInput     = GetComponent <Script_PlayerInput>();
         playerRigidbody = GetComponent <Rigidbody>();
         playerAnimator  = GetComponent <Animator>();
     }
 }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        playerInput=GetComponent<Script_PlayerInput>();
        playerAnimator=GetComponent<Animator>();

    }