Ejemplo n.º 1
0
    //this function is called when the offline local coop level is loaded after selecting the player data

    public override void InitializePlayer(PlayerDataConfiguration pc)
    {
        _playerConfig          = pc;
        _playerRenderer.sprite = pc.PlayerShape;
        _playerRenderer.color  = pc.PlayerSpriteColor;

        //subscribing the Input actions from the _PlayerInputHandler to the PlayerInput component
        //PlayerInput component is required to use Unity's Input System

        _playerConfig.Input.onActionTriggered += _playerInputHandler.Input_onActionTriggered;
    }
Ejemplo n.º 2
0
 public abstract void InitializePlayer(PlayerDataConfiguration pc);
Ejemplo n.º 3
0
    //-------------------------------------------------------------------------------------------



    public override void InitializePlayer(PlayerDataConfiguration pc)
    {
        throw new System.NotImplementedException();
    }