Beispiel #1
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space) && currentInterObj == true)
     {
         if (currentInterObjScrpit.info == true)
         {
             currentInterObjScrpit.Info();
         }
     }
     if (Input.GetKeyDown(KeyCode.Space) && currentInterObj == true)
     {
         if (currentInterObjScrpit.pickup == true)
         {
             currentInterObjScrpit.Pickup();
         }
     }
     if (Input.GetKeyDown(KeyCode.Space) && currentInterObj == true)
     {
         if (currentInterObjScrpit.talks == true)
         {
             currentInterObjScrpit.Talks();
         }
     }
 }