// Start is called before the first frame update
 void Start()
 {
     playerCntrl     = player.GetComponent <PlayerController>();
     playerMvmnt     = player.GetComponent <PlayerMovement>();
     playerDrctnl    = player.GetComponent <PlayerDirectional>();
     keyboadMovement = player.GetComponent <KeyboardMovement>();
 }
Exemple #2
0
        private async Task loadCharacters(IGame game)
        {
            ICharacter       character = game.State.Player;
            KeyboardMovement movement  = new KeyboardMovement(character, game.Input,
                                                              game.State.FocusedUI, KeyboardMovementMode.Pressing);

            movement.AddArrows();
            movement.AddWASD();

            InventoryItems items = new InventoryItems();
            await items.LoadAsync(game.Factory);

            Beman beman = new Beman();

            character = await beman.LoadAsync(game);

            var room = await Rooms.BrokenCurbStreet;
            await character.ChangeRoomAsync(room, 100, 110);

            Characters.Init(game);
        }