// Use this for initialization protected void Start() { zombieSpawner = FindObjectOfType <ZombieSpawner>(); wavesManager = FindObjectOfType <WavesManager>(); aliveZombies.Add(this); SetUpGame.MakeSmaller(gameObject); CreateZombie(); player = FindObjectOfType <PlayerAttack>(); rigidBody2d = GetComponent <Rigidbody2D>(); InvokeRepeating("CheckForSamePosZombies", 4.765f, 5f); }
void Start() { SetUpGame.MakeSmaller(gameObject); }
// Use this for initialization void Start() { originalSpeed = speed; SetUpGame.MakeSmaller(gameObject); gameCamera = FindObjectOfType <Camera>(); }
void Start() { SetUpGame.MakeSmaller(gameObject); rigidBody2d = GetComponent <Rigidbody2D>(); }
// Start is called before the first frame update void Start() { SetUpGame.MakeSmaller(gameObject); Invoke("DestoryItself", 1f); AudioSource.PlayClipAtPoint(explosionClip, this.transform.position); }
void Start() { SetUpGame.MakeSmaller(gameObject); Invoke("SelfDestroy", 30f); }
// Start is called before the first frame update void Start() { SetUpGame.MakeSmaller(gameObject); player = FindObjectOfType <PlayerAttack>(); Invoke("DestroyItself", 30f); }