コード例 #1
0
    public override void Begin(Player p)
    {
        base.Begin(p);

        unitCard.AddSpellButtonCallback(PrimeSpell);
        unitCard.noActionCallback = FinishCharacter;

        p.ResetCharacters();
        currState = State.Neutral;

        tileSelector.clickCallback = OnTileClick;
        tileSelector.Begin();

        if (p.characters.Count > 0)
        {
            SelectTile(p.characters[0].currTile);
        }
    }
コード例 #2
0
    public override void Begin(Player p)
    {
        base.Begin(p);

        unitCard.AddSpellButtonCallback(PrimeSpell);

        characterListCard.Show();

        spawnSelected = false;

        DefineSpawnTiles();

        currState = State.Neutral;
        p.ResetCharacters();
        tileSelector.clickCallback = OnTileClick;
        tileSelector.Begin();

        SelectTile(GameMap.Instance.spawnTiles[0]);
    }