//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; }
public abstract void InitializePlayer(PlayerDataConfiguration pc);
//------------------------------------------------------------------------------------------- public override void InitializePlayer(PlayerDataConfiguration pc) { throw new System.NotImplementedException(); }