private void Start() { if (_shieldSpawner == null) { _shieldSpawner = new ShieldSpawner("MavkaShield", _owner); } }
void Start(){ movementManager = GetComponent<MovementManager> (); playerSpawner = GetComponent<PlayerSpawner> (); player = GetComponent<Player> (); elementSpawner = GetComponent<ElementSpawner> (); spellSpawner = GetComponent<SpellSpawner> (); shieldSpawner = GetComponent<ShieldSpawner> (); audioManager = GetComponent<AudioManager> (); }
private void Awake() { if (ShieldSpawnerInstance == null) { ShieldSpawnerInstance = this; } Shield.GetComponent <Rigidbody2D>().gravityScale = 0.1f; }
// Use this for initialization void Start() { coreBlinkAnimation = GetComponentInChildren <BlinkDamageAnimation> (); currentHealth = maxHealth; difficulty = 0; wanderBehavior = GetComponent <WanderBehavior> (); wanderBehavior.setActive(true); followBehavior = GetComponent <FollowBehavior> (); wanderBehavior.setActive(false); shieldSpawner = GetComponentInChildren <ShieldSpawner> (); gunSpawner = GetComponentInChildren <GunSpawner> (); wallGunSpawner = GetComponentInChildren <WallGunSpawner> (); targetFire = GetComponent <TargettedFireBehavior> (); trapSpawner = GetComponentInChildren <TrapSpawner> (); nextBehaviorStartTime = Time.time + behaviorDelay; nextBehaviorEndTime = nextBehaviorStartTime + behaviorDuration; // targetFire.setStatus (true); // wallGunSpawner.setStatus (true); gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController> (); }
void Awake () { //singleton instance = this; }