Пример #1
0
 public override void OnTrigger(GameObject source)
 {
     if (!triggerOff)
     {
         target.On(source);
     }
     else
     {
         target.Off(source);
     }
 }
Пример #2
0
 public void On(GameObject origin, bool persistent)
 {
     target.On(origin);
     persistentOn = persistent;
     this.origin  = origin;
 }