Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         playerscript.ToggleInteractable(this);
         scrappaper = invent.FindItem("Scrap Paper");
     }
 }
Beispiel #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         playerscript.ToggleInteractable(this);
         currentcount = invent.FindItemCount("C4");
         workshopman  = invent.FindItem("Workshop Manual");
     }
 }
Beispiel #3
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.CompareTag("Player"))
        {
            playerscript.ToggleInteractable(this);

            //Check objective items
            hangerdoor  = hangerdoorscript.HangarDoorOpen();
            clearance   = controltower.GotClearance();
            pilotsnotes = inventparent.FindItem("Pilot Notes");
            Debug.Log("Pilot Notes:" + pilotsnotes);
            Debug.Log("Hangar Door:" + hangerdoor);
            Debug.Log("Clearance :" + clearance);
        }
    }