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

    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
    }
コード例 #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();
    }
コード例 #4
0
 void Awake()
 {
     instance = this;
 }
コード例 #5
0
 private void Awake()
 {
     Instance    = this;
     enemyBullet = (GameObject)Resources.Load <GameObject>("enemyBullet");
 }
コード例 #6
0
 private void Awake()
 {
     Instance = this;
 }
コード例 #7
0
 void Awake()
 {
     current = this;
 }
コード例 #8
0
 // Use this for initialization
 void Start()
 {
     pool = GetComponent<EnemyBulletPool>();
     actualAmmo = ammoCount;
     lastfired = 0;
     sprite = GetComponent<SpriteRenderer>();
 }
コード例 #9
0
    private void Awake()
    {
        Instance = this;

        Initialize(30);
    }