Guest User

Untitled

a guest
Apr 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. //need this public
  2. var section : GameObject;
  3.  
  4. //need to do everything else in a static sense
  5. static var counter : int = 2;
  6. static function Eval () {
  7.  
  8. //section does not want to play nicely in a static situation
  9. //An instance of type 'TriggerManager' is required to access non static member 'section'.
  10.  
  11. print(counter);
  12. if(counter == 0)
  13. TriggerManager.section.SetActiveRecursively = false;
  14. else
  15. TriggerManager.section.SetActiveRecursively = true;
  16.  
  17. }
Add Comment
Please, Sign In to add comment