Esempio n. 1
0
 public void Awake()
 {
     if (levelInst == null)
     {
         levelInst = this;
     }
 }
Esempio n. 2
0
 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>();
    }
Esempio n. 4
0
    // 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);
    }
Esempio n. 5
0
    public BrainStorm(Workout brainStormCore, LevelManeger levelManeger)
    {
        core = brainStormCore;
        this.levelManeger = levelManeger;

        ResetStage();
        Run();

        GameManager.Notifications.AddListener(null, GAME_EVENTS.NotUntrainedWords);
    }
Esempio n. 6
0
 void Awake()
 {
     if (levelManeger == null)
     {
         levelManeger = this;
     }
     else if (levelManeger != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 7
0
    // 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>();
    }
Esempio n. 8
0
    // 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> ();
 }
Esempio n. 10
0
 public void SetActiveManager(LevelManeger manager)
 {
     levmanag = manager;
 }
Esempio n. 11
0
 // Use this for initialization
 void Start()
 {
     levelManeger = FindObjectOfType <LevelManeger>();
     GetComponent <Button>().onClick.AddListener(() => GameManager.LevelManeger.LoadLevel(sceneName));
 }
Esempio n. 12
0
 void Start()
 {
     levelManager = FindObjectOfType<LevelManeger>();
 }
Esempio n. 13
0
 //Exit Game
 public static void ExitGame()
 {
     LevelManeger.QuitGame();
 }