Beispiel #1
0
    private void Start()
    {
        _bossBackground  = GetComponentInChildren <BossBackground>();
        _bossCannons     = GetComponentInChildren <BossCannons>();
        _bossDoor        = GetComponentInChildren <BossDoor>();
        _bossHiddenEnemy = GetComponentInChildren <BossHiddenEnemy>();

        _startBoss = false;
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     animator = this.GetComponent <Animator>();
     if (null == mProjectile)
     {
         mProjectile = Resources.Load("Prefabs/Laser") as GameObject;
     }
     if (globalBehavior == null)
     {
         globalBehavior = GameObject.Find("GameManager").GetComponent <BossBackground>();
     }
 }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        if (level2GameState == null)
        {
            level2GameState = GameObject.Find("GameManager").GetComponent <BossBackground>();
        }

        if (globalBehavior == null)
        {
            globalBehavior = FirstGameManager.TheGameState;
        }

        if (mAbduct == null)
        {
            mAbduct = Resources.Load("Prefabs/AbductSplash") as GameObject;
        }
    }