Пример #1
0
 private void RaftDeflatedInteractions(Clicker clicker)
 {
     if (clicker.gameObject == pump.gameObject)
     {
         pump.animation.Play("Pump");
         AnimateDelayed component = raft.gameObject.AddComponent <AnimateDelayed>();
         component.time = 1;
         component.clip = "Inflate";
         state          = State.RaftInflated;
         AudioSource.PlayClipAtPoint(leverClip, pump.transform.position);
     }
 }
Пример #2
0
 private void RaftClickedInteractions(Clicker clicker)
 {
     if (clicker.gameObject == pump.gameObject)
     {
         pump.gameObject.animation.Play("Pump");
         AnimateDelayed component = raft.gameObject.AddComponent <AnimateDelayed>();
         component.time  = 1;
         component.clip  = "InflateDeflate";
         gameGUI.message = "Awesome! The pump inflated the raft, but it has soon deflated again. Perhaps something is wrong with the raft";
         state           = State.PumpClicked;
         AudioSource.PlayClipAtPoint(leverClip, pump.transform.position);
     }
 }