void Start() { projectilePools = ProjectilePools.Instance; InvokeRepeating("SpawnProjectile", 1.0f, 1.0f); StartCoroutine("Waiter"); }
void Start() { projectilePools = ProjectilePools.Instance; GameObject projectile; transform.position = new Vector3 (transform.position.x, transform.position.y, 10f); projectile = projectilePools.SpawnFromPool("EnemyProjectile", transform.position, Quaternion.identity); }
void Awake() { Instance = this; }
void Start( ) { projectilePools = ProjectilePools.Instance; StartCoroutine("Shoot"); }