public void Awake() { if (levelInst == null) { levelInst = this; } }
void Awake() { Assert.IsNotNull(Tape); if (instance == null) { instance = this; } }
// Use this for initialization void Start() { playerCurHealth = maxPlayerHealth; levelManager = FindObjectOfType <LevelManeger>(); lifeSystem = FindObjectOfType <LifeManager>(); theTime = FindObjectOfType <TimeManager>(); }
// Use this for initialization void Start() { levelManeger = FindObjectOfType <LevelManeger>(); GameManager.Notifications.AddListener(this, GAME_EVENTS.ButtonHandlerLoaded); GameManager.Notifications.AddListener(this, GAME_EVENTS.WordsEnded); GameManager.Notifications.AddListener(this, GAME_EVENTS.BuildTask); GameManager.Notifications.AddListener(this, GAME_EVENTS.CorrectAnswer); }
public BrainStorm(Workout brainStormCore, LevelManeger levelManeger) { core = brainStormCore; this.levelManeger = levelManeger; ResetStage(); Run(); GameManager.Notifications.AddListener(null, GAME_EVENTS.NotUntrainedWords); }
void Awake() { if (levelManeger == null) { levelManeger = this; } else if (levelManeger != this) { Destroy(gameObject); } }
// Use this for initialization protected virtual void Start() { //gets the rigidbody2d of the character rb2D = GetComponent<Rigidbody2D>(); //gets the animation control of the character animator = GetComponent<Animator>(); //store current player gravity for when player leaves the ladder (to reset) gravityStore = rb2D.gravityScale; levelManager = FindObjectOfType<LevelManeger>(); }
// Use this for initialization void Start() { timesHit = 0; levelMan = GameObject.FindObjectOfType <LevelManeger>(); maxHits = hitSprits.Length + 1; //keep track of brackable brikcs isBreakable = (this.tag == "Breakable"); if (isBreakable) { numberOfBricks++; } }
// Use this for initialization void Start() { levelManeger = FindObjectOfType <LevelManeger> (); }
public void SetActiveManager(LevelManeger manager) { levmanag = manager; }
// Use this for initialization void Start() { levelManeger = FindObjectOfType <LevelManeger>(); GetComponent <Button>().onClick.AddListener(() => GameManager.LevelManeger.LoadLevel(sceneName)); }
void Start() { levelManager = FindObjectOfType<LevelManeger>(); }
//Exit Game public static void ExitGame() { LevelManeger.QuitGame(); }