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; }
void Awake() { frontTrigger = transform.Find ("FrontTrigger"); groundCheck = transform.Find("GroundCheck"); _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>(); _inputManager = GetComponent<Main_Enemy_Movement>(); print ("what is ground"+ whatIsGround); _gestureText = FindObjectOfType<GUIText>(); _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>(); //_gestureText.fontSize = Screen.width / 8; //Linea añadida para empezar con el trigger on FrontTrigger.GetComponent<BoxCollider2D>().enabled = true; //Ignore Collision Between Main enemy and normal enemies Physics2D.IgnoreLayerCollision(13,10); //Ignore Collision Between Main enemy and ground platforms Physics2D.IgnoreLayerCollision(13,10); }
void Awake() { // Setting up references. groundCheck = transform.Find("GroundCheck"); _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>(); }
// Use this for initialization void Start () { _characterController = GetComponent<CharacterControllerRunner>(); _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>(); }