public void Awake() { _Controller = GetComponent <Character_Controller_2D>(); _isFacingRight = transform.localScale.x > 0; Health = maxhealth; }
public void Start() { _Controller = GetComponent <Character_Controller_2D> (); _Direction = new Vector2(-1, 0); _StartPosition = transform.position; Health = MaxHealth; }
public void Awake() { _Controller = GetComponent <Character_Controller_2D>(); _isFacingRight = transform.localScale.x > 0; Health = maxhealth; PlayerAnim = GetComponent <SkeletonAnimation>(); }
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; }
public void ControllerEnter(Character_Controller_2D controller) { controller.SetVerticalForce(jumpMagnitude); }