private void Start() { audio = GetComponent <AudioSource>(); rb = GetComponent <Rigidbody>(); ik = GetComponentInChildren <IKThingy>(); bomb = GetComponentInChildren <Bomb>(); }
public void SpawnGuest() { IKThingy i = Instantiate(guestPrefab, guestSpawnLocation.position, guestSpawnLocation.rotation).GetComponentInChildren <IKThingy>(); i.pressanKasi = playerHand; i.pressanPaa = playerHead; }