private PlatformerCharacter2D playerCtrl; // Reference to the PlayerControl script. #endregion Fields #region Methods void Awake() { // Setting up the references. anim = transform.root.gameObject.GetComponent<Animator>(); playerCtrl = transform.root.GetComponent<PlatformerCharacter2D>(); }
private Animator anim; // Reference to the Animator component. void Awake() { // Setting up the references. anim = transform.root.gameObject.GetComponent <Animator>(); playerCtrl = transform.root.GetComponent <PlatformerCharacter2D>(); }
private void Awake() { m_Character = GetComponent <PlatformerCharacter2D>(); }
private void Awake() { m_Character = GetComponent<PlatformerCharacter2D>(); }