void Awake() { movement = GetComponent <CharacterMovement>(); blocking = GetComponent <PlayerBlocking>(); attackAnim = GetComponent <CharacterAnimations>(); healthController = FindObjectOfType <UniversalHealthController>(); animator = GetComponent <Animator>(); effectController = SpecialEffectController.instance; #region Mobile Buttons // attackButton = GameObject.Find("Attack Button").GetComponent<Button>(); // kickButton = GameObject.Find("Kick Button ").GetComponent<Button>(); // specialAttack_Button = GameObject.Find("Special Attack Button").GetComponent<Button>(); //// buttonColor = GameObject.Find("Special Attack Button").GetComponent<Button>().colors; #endregion }
void Start() { pManager = PlayerManager.instance; input = ReInput.players.GetPlayer(0); pMove = GetComponent <PlayerMovement>(); wallJump = GetComponent <WallJump>(); freeClimb = GetComponent <FreeClimb>(); ledgeClimb = GetComponent <LedgeClimb>(); climbLadder = GetComponent <ClimbLadder>(); pAttack = GetComponent <PlayerAttack>(); pBlocking = GetComponent <PlayerBlocking>(); pMenu = GetComponent <PlayerMenu>(); pInv = GetComponent <PlayerInventory>(); pInteraction = GetComponent <PlayerInteraction>(); pCamera = Camera.main.GetComponent <ThirdPersonCamera>(); anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); timeSinceGrounded = Time.time; }