Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     pool       = GetComponent <EnemyBulletPool>();
     actualAmmo = ammoCount;
     lastfired  = 0;
     sprite     = GetComponent <SpriteRenderer>();
 }
Exemplo n.º 2
0
    private List <GameObject> clipA, clipB, clipC, clipD;    // Clips for the bullet types we handle.

    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        hasShoot       = false;
        playerPosition = GameObject.FindGameObjectWithTag("MainCamera").transform;
        bulletPool     = EnemyBulletPool.Instance;
        audioManager   = FindObjectOfType <CAudioManager>();
        beenHit        = false;

        if (IsKamikaze)
        {
            StartCoroutine(KamikazeAttack());
        }
        if (FireBullets)
        {
            StartCoroutine(FirstShoot());
        }

        props = new MaterialPropertyBlock();
    }
Exemplo n.º 4
0
 void Awake()
 {
     instance = this;
 }
Exemplo n.º 5
0
 private void Awake()
 {
     Instance    = this;
     enemyBullet = (GameObject)Resources.Load <GameObject>("enemyBullet");
 }
Exemplo n.º 6
0
 private void Awake()
 {
     Instance = this;
 }
Exemplo n.º 7
0
 void Awake()
 {
     current = this;
 }
Exemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     pool = GetComponent<EnemyBulletPool>();
     actualAmmo = ammoCount;
     lastfired = 0;
     sprite = GetComponent<SpriteRenderer>();
 }
Exemplo n.º 9
0
    private void Awake()
    {
        Instance = this;

        Initialize(30);
    }