void Awake()
    {
        anim = GetComponent<Animator>();
        mainCam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Camera>();
        SetGameObject(gameObject);
		playerJump = GetComponent<IPlayerJump> ();

    }
Example #2
0
    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>();


    }