void Awake()
 {
     DontDestroyOnLoad(transform.gameObject);
     instance     = this;
     freeShots    = new List <GameObject>();
     onSceneShots = new List <GameObject>();
 }
Exemplo n.º 2
0
    void Start()
    {
        mRigidbody2D   = GetComponent <Rigidbody2D>();
        mBulletManager = GameObject.Find("BossBulletSpawn").GetComponent <BossBulletManager>();
        mGunMotor      = GameObject.Find("BossBulletSpawn").GetComponent <GunMotor>();
        mHealth        = GetComponent <Health>();

        mMovementPattern   = mBossPhases[mCurrentPhase].data[mCurrentSubPhase].movementPattern;
        mGunMotor.mGunData = mBossPhases[mCurrentPhase].data[mCurrentSubPhase].gunData;
        mGunMotor.initializeGunTimers();
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     bulletManager = BossBulletManager.Instance;
     StartCoroutine(Attack());
     StartCoroutine(GroupManager());
 }