void Awake() { CurrentState = CharacterState.Idle; TorchScript = GetComponent <TL_Torch>(); MoveScript = GetComponent <TL_CharacterMove>(); JumpScript = GetComponent <TL_CharacterJump>(); GrabScript = GetComponent <TO_CharacterGrabBlock>(); CharacterAnimator = GetComponent <Animator>(); }
void Start() { PlayerCollider2D = GetComponent <Collider2D>(); GrabScript = GetComponent <TO_CharacterGrabBlock>(); }