예제 #1
0
 private void Start()
 {
     audio = GetComponent <AudioSource>();
     rb    = GetComponent <Rigidbody>();
     ik    = GetComponentInChildren <IKThingy>();
     bomb  = GetComponentInChildren <Bomb>();
 }
예제 #2
0
    public void SpawnGuest()
    {
        IKThingy i = Instantiate(guestPrefab, guestSpawnLocation.position, guestSpawnLocation.rotation).GetComponentInChildren <IKThingy>();

        i.pressanKasi = playerHand;
        i.pressanPaa  = playerHead;
    }