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