Ejemplo n.º 1
0
    public void CreatePlayerController(PlayerControllerBase controllerPrefab,
                                       PlayerableCharacterBase playerableCharacterPrefab)
    {
        playerController = (controllerPrefab == null) ? null : Instantiate(controllerPrefab);

        playerController?.CreatePlayerableCharacter(playerableCharacterPrefab);
    }