Ejemplo n.º 1
0
    public void Awake()
    {
        _Controller    = GetComponent <Character_Controller_2D>();
        _isFacingRight = transform.localScale.x > 0;

        Health = maxhealth;
    }
Ejemplo n.º 2
0
    public void Start()
    {
        _Controller    = GetComponent <Character_Controller_2D> ();
        _Direction     = new Vector2(-1, 0);
        _StartPosition = transform.position;

        Health = MaxHealth;
    }
Ejemplo n.º 3
0
    public void Awake()
    {
        _Controller    = GetComponent <Character_Controller_2D>();
        _isFacingRight = transform.localScale.x > 0;

        Health = maxhealth;

        PlayerAnim = GetComponent <SkeletonAnimation>();
    }
Ejemplo n.º 4
0
    private void Awake()
    {
        // get script refs
        character_cont = gameObject.GetComponent <Character_Controller_2D>();
        anim_cont      = gameObject.GetComponent <Player_Anim_Controller>();

        m_Rigidbody2D = GetComponent <Rigidbody2D>();
        SetGrav();
        orig_position = gameObject.transform.position;
    }
Ejemplo n.º 5
0
 public void ControllerEnter(Character_Controller_2D controller)
 {
     controller.SetVerticalForce(jumpMagnitude);
 }