Ejemplo n.º 1
0
    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;
    }
Ejemplo n.º 2
0
	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);
	}
Ejemplo n.º 3
0
 void Awake()
 {
     // Setting up references.
     groundCheck = transform.Find("GroundCheck");
     _shamanSpineController = GetComponent<ShamanChangeSpineAnimation>();
 }
Ejemplo n.º 4
0
	// Use this for initialization
	void Start () {
		_characterController = GetComponent<CharacterControllerRunner>();
		_shamanSpineController = GetComponent<ShamanChangeSpineAnimation>();

	}