Esempio n. 1
0
 void Start()
 {
     SarcasticHealthResponse.SetActive(false);
     yeet         = GetComponent <Yeet>();
     player       = GetComponent <Player>();
     playerBody   = player.GetComponent <Rigidbody>();
     playerHealth = player.GetComponent <PlayerHealth>();
     Hit          = yeet.hit;
     EnemiesHit   = 0;
 }
Esempio n. 2
0
 private void SpawnItem()
 {
     itemToBeYeeted = (Instantiate(spawn, itemLocation.position, itemLocation.parent.transform.localRotation)).GetComponent <Yeet>();
     hasItem        = true;
 }