Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //need this public
- var section : GameObject;
- //need to do everything else in a static sense
- static var counter : int = 2;
- static function Eval () {
- //section does not want to play nicely in a static situation
- //An instance of type 'TriggerManager' is required to access non static member 'section'.
- print(counter);
- if(counter == 0)
- TriggerManager.section.SetActiveRecursively = false;
- else
- TriggerManager.section.SetActiveRecursively = true;
- }
Add Comment
Please, Sign In to add comment