// Start is called before the first frame update void Start() { characterGroundedCheck = GetComponentInChildren <CharacterGroundedCheck>(); characterControl = GetComponent <CharacterControl>(); characterAnimationController = GetComponentInChildren <CharacterAnimationController>(); characterLadderClimb = GetComponentInChildren <CharacterLadderClimb>(); InitializeDelegates(); }
// Start is called before the first frame update public virtual void Start() { characterGrab = GetComponentInChildren <CharacterGrab>(); characterMelee = GetComponentInChildren <CharacterMelee>(); characterJump = GetComponentInChildren <CharacterJump>(); characterLadderClimb = GetComponentInChildren <CharacterLadderClimb>(); characterLedgeGrab = GetComponentInChildren <CharacterLedgeGrab>(); characterMove = GetComponentInChildren <CharacterMovement>(); characterState = GetComponent <CharacterState>(); }
void Start() { characterMove = GetComponent <CharacterMovement>(); characterState = GetComponentInParent <CharacterState>(); characterGroundedCheck = GetComponent <CharacterGroundedCheck>(); characterLadderClimb = GetComponent <CharacterLadderClimb>(); wallDetectionCollider = GetComponentInChildren <WallDetectionCollider>(); rb2D = GetComponentInParent <Rigidbody2D>(); InitializeDelegates(); // InvokeRepeating("PrintMessage", 1f , 1f); // ToolBox.instance.InvokeFunctionRepeating(() => print(Time.time), .1f, Time.time, 1f); }