// Start is called before the first frame update
 void Start()
 {
     gameManager = GameObject.Find("GameManager").GetComponent <GameManager>();
     playerState = GetComponent <PlayerState>();
     playerCap   = GetComponent <CapsuleCollider>();
     playerAni   = GetComponent <PlayerAniControl>();
 }
Пример #2
0
 void Start()
 {
     canFire = true;
     pStats  = GetComponent <PlayerStats>();
     pGUI    = GetComponent <PlayerGui>();
     pAni    = GetComponent <PlayerAniControl>();
     radius  = GetComponentInChildren <Radius>();
     // AddItem(OBJ);
     GameMaster.instance.pHand = this;
 }