Exemplo n.º 1
0
    public void Init(PlayerConfig player, CharacterConfig character)
    {
        gameObject.name = "Player " + player.number + " (" + character.name + ")";

        inputMap = new InputMap(player.number);

        ApplyPlayerConfig(player);

        base.Init(character);

        ui = Instantiate(playerUIPrefab).GetComponent <PlayerUIController> ();
        ui.Init(player, character, abilities, ult);

        // PROTOTYPE TESTING
        PrototypeInfo prototypeInfo = GameObject.FindObjectOfType <PrototypeInfo> ();

        transform.position = prototypeInfo.GetPlayerPrototypePosition(player.number);
    }