Exemplo n.º 1
0
 private void Start()
 {
     if (_shieldSpawner == null)
     {
         _shieldSpawner = new ShieldSpawner("MavkaShield", _owner);
     }
 }
Exemplo n.º 2
0
	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> ();
    }
Exemplo n.º 5
0
	void Awake () {
		//singleton
		instance = this;
	}