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