Example #1
0
 void Start()
 {
     mRigidbody2D  = GetComponent <Rigidbody2D>();
     mGunMotor     = GetComponent <GunMotor>();
     mHealth       = GetComponent <Health>();
     mDashLine     = GameObject.Find("Line").GetComponent <LineRenderer>();
     dashThickness = mDashLine.startWidth;
 }
Example #2
0
 void Start()
 {
     mRigidbody2D       = GetComponent <Rigidbody2D>();
     mHealth            = GetComponent <Health>();
     mGunMotor          = GetComponent <GunMotor>();
     transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition);
     Cursor.visible     = false;
 }
    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();
    }
Example #4
0
 void Start()
 {
     mGunMotor = GetComponent <GunMotor>();
     mPlayer   = GameObject.Find("Player");
 }