Exemplo 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>();
 }
Exemplo 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;
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     player            = GameObject.FindGameObjectWithTag("Player");
     displayTextScript = GetComponent <ItemDisplayText>();
     leverAnim         = GetComponent <Animator>();
 }