private bool m_FacingRight = true; // For determining which way the player is currently facing. private void Awake() { m_GroundCheck = transform.Find("GroundCheck"); m_Anim = GetComponent <Animator>(); m_Rigidbody2D = GetComponent <Rigidbody2D>(); instance = this; }
private void Awake() { m_Character = GetComponent <PlatformerCharacter2DSpecific>(); instance = this; }