void Awake() { _inputManager = GetComponent<InputManagerGesture>(); _characterController = GetComponent<CharacterControllerRunner>(); _gestureText = FindObjectOfType<GUIText>(); _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>(); //_gestureText.fontSize = Screen.width / 8; //Linea añadida para empezar con el trigger off //FrontTrigger.GetComponent<BoxCollider2D>().enabled = false; }
private bool entered =false; //If the player has already entered in the trigger, to avoid // Use this for initialization void Start () { _characterController = GameObject.FindWithTag("Player").GetComponent<CharacterControllerRunner>(); }
// Use this for initialization void Start () { _characterController = GetComponent<CharacterControllerRunner>(); _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>(); }