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