void OnTriggerEnter(Collider other)
 {
     foreach (string currentTag in tagsCanCollide)
     {
         if (other.tag.Equals(currentTag))
         {
             objectToShow.SetActive(true);
             Character2DController jogador = (Character2DController)FindObjectOfType(typeof(Character2DController));
             jogador.SetStateAnimation(EnumPlayerState.STAY);
             return;
         }
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     player = FindObjectOfType<Character2DController>();
     timeMinToShoot = Random.Range(timeMinToShoot,timeMaxToShoot);
 }
Ejemplo n.º 3
0
		void Start() {
			player = FindObjectOfType<Character2DController>();
			timeMinToShoot = Random.Range(timeMinToShoot,timeMaxToShoot);
		}