public void Start() { timeCounter = GameObject.FindGameObjectWithTag("TIME").GetComponent <TimeCounter>(); playerVida = GameObject.FindGameObjectWithTag("Player").GetComponent <PLAYER_VIDA>(); destroy = false; }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PLAYER_VIDA>(); anim = GetComponent <Animator>(); Time.timeScale = 1; gameManager = GameObject.FindGameObjectWithTag("GAMEMANAGER").GetComponent <GAMEMANAGER>(); }
public void Init() { playerVida = GameObject.FindGameObjectWithTag("Player").GetComponent <PLAYER_VIDA>(); controller = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterController>(); playerVida.Ini(); anim = GetComponent <Animator>(); controller.enabled = true; }