Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     player            = GameObject.FindGameObjectWithTag("Player");
     displayTextScript = GetComponent <ItemDisplayText>();
     animChest         = GetComponent <Animator>();
     playerItemScript  = player.GetComponent <ItemPickup>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     player            = GameObject.FindGameObjectWithTag("Player");
     playerItemScript  = player.GetComponent <ItemPickup>();
     displayTextScript = GetComponent <ItemDisplayText>();
     itemRB            = GetComponent <Rigidbody>();
     itemCol           = GetComponent <BoxCollider>();
     holdObject        = GameObject.FindGameObjectWithTag("HoldObject").transform;
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     player            = GameObject.FindGameObjectWithTag("Player");
     displayTextScript = GetComponent <ItemDisplayText>();
     leverAnim         = GetComponent <Animator>();
 }