Example #1
0
    //マウスクリック
    void OnMouseDown()
    {
        Vector3 vec = Unit.GetEnemyGamePosition(enemyID);

        switch (TurnAndPhase.type)
        {
        case (int)TurnAndPhase.Type.Attack:
            if (!Floor.CheckSelectingGrid(vec))
            {
                break;
            }
            player.SendMessage("AttackPlayer", (Vector2)vec);
            break;

        case (int)TurnAndPhase.Type.Debuff:
            if (!Floor.CheckSelectingGrid(vec))
            {
                break;
            }
            player.SendMessage("DebuffPlayer", (Vector2)vec);
            break;
        }
        Status.EnemyStatus(true, enemyID);
    }