void Awake() { anim = GetComponent <Animator> (); rb = GetComponent <Rigidbody2D> (); colliders = transform.Find("Colliders").gameObject; playerWeapons = GetComponent <PlayerWeapons> (); movementController = GetComponent <IMovement> (); jumpingController = GetComponent <IJumpingController> (); dashingController = GetComponent <IDashing> (); playerDamageable = GetComponent <PlayerDamageable> (); directionManager = GetComponent <IDirectionManager> (); wallClimbing = GetComponent <WallClimbing>(); }
private void Start() { rb = GetComponent <Rigidbody2D>(); groundedChecker = GetComponent <IGroundedChecking>(); wallClimbing = GetComponent <WallClimbing>(); }