Example #1
0
 // 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);
 }
Example #2
0
 void Start()
 {
     SetUpGame.MakeSmaller(gameObject);
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     originalSpeed = speed;
     SetUpGame.MakeSmaller(gameObject);
     gameCamera = FindObjectOfType <Camera>();
 }
Example #4
0
 void Start()
 {
     SetUpGame.MakeSmaller(gameObject);
     rigidBody2d = GetComponent <Rigidbody2D>();
 }
Example #5
0
 // Start is called before the first frame update
 void Start()
 {
     SetUpGame.MakeSmaller(gameObject);
     Invoke("DestoryItself", 1f);
     AudioSource.PlayClipAtPoint(explosionClip, this.transform.position);
 }
Example #6
0
 void Start()
 {
     SetUpGame.MakeSmaller(gameObject);
     Invoke("SelfDestroy", 30f);
 }
Example #7
0
 // Start is called before the first frame update
 void Start()
 {
     SetUpGame.MakeSmaller(gameObject);
     player = FindObjectOfType <PlayerAttack>();
     Invoke("DestroyItself", 30f);
 }