Пример #1
0
        protected override void CreateNewPlayer()
        {
            MyPlayer = new GodPlayer(CreateInventory(), CreatePet());
            Shop shop = new Shop();

            MyPlayer.Put(shop.OpenStorage.Show());
        }
Пример #2
0
    private void AddPlayer()
    {
        GodPlayer playerGod = Instantiate(_playerPrefabs[Random.Range(0, _playerPrefabs.Length)], transform.position, transform.rotation).GetComponent <GodPlayer>();

        _players.Add(playerGod);
        playerGod.HorizontalInputName     = "J" + _players.Count + "Horizontal";
        playerGod.VerticalInputName       = "J" + _players.Count + "Vertical";
        playerGod.LookHorizontalInputName = "J" + _players.Count + "LookHorizontal";
        playerGod.LookVerticalInputName   = "J" + _players.Count + "LookVertical";
        playerGod.AttackBtnName           = "J" + _players.Count + "Attack";
        playerGod.SpecialBtnName          = "J" + _players.Count + "Special";
    }