void Awake() { anim = GetComponent<Animator>(); mainCam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Camera>(); SetGameObject(gameObject); playerJump = GetComponent<IPlayerJump> (); }
void Start() { player = Rewired.ReInput.players.GetPlayer(playerId); playerMoveController = GetComponent<IPlayerMovable>(); playerJump = GetComponent<IPlayerJump>(); playerRightTriggerAction = GetComponent<PlayerRightTriggerAction>(); //playerSwinging = GetComponent<SwingingWeapon>(); //playerWallJump = GetComponent<WallJump>(); //playerCamera = FindObjectOfType<Camera>().GetComponent<PlayerCamera>(); }