void Start() { myVars = GetComponent <ChooChoo>(); healthMgr = GetComponent <EnemyHealthManager>(); powerupMgr = GetComponent <FodderPowerupMgr>(); deathEffect = myVars.DeathEffect; }
void Start() { levelManager = GameObject.FindGameObjectWithTag("Game Manager").GetComponent <LevelManager>(); myVars = GetComponent <ChooChoo>(); MyBounds = levelManager.bounds; thrustForce = myVars.ThrustForce; maxSpeed = myVars.MaxSpeed; moveAngle = myVars.MoveAngle * pi / 180f; stunTimer = gameObject.AddComponent <Timer>(); stunTimer.Trigger += StunOff; Reorient(); }