Exemplo n.º 1
0
 public static void Delete_Enemy_Range()
 {
     commandPanel.SetActive(false);
     CharaMove.Destroy_Movabletile();
     CharaAttack.Destroy_Attackabletile();
     CharaSkill.Destroy_Attackabletile();
     CharaSkill.Destroy_Areatile();
 }
Exemplo n.º 2
0
    //攻撃可能キャラリストの中で、攻撃対象を選び出す
    public static void Set_Attack(List <Unitdata> charalist, Unitdata target)
    {
        //そもそもターゲットが存在する場合、ここで終了
        if (Is_Chara_in_List(charalist, target))
        {
            CharaAttack.Set_attackedpos(target.x, target.y);
            return;
        }

        int randomid = Random.Range(0, charalist.Count - 1);

        CharaAttack.Set_attackedpos(charalist[randomid].x, charalist[randomid].y);
    }
Exemplo n.º 3
0
    //敵キャラの移動範囲や攻撃範囲・スキル範囲を表示する、あるいは消去する
    //state : 0->消去 1->詳細表示 2->移動範囲 3->攻撃範囲
    public static void Show_Enemy_Range(int showstate)
    {
        Delete_Enemy_Range();
        switch (showstate)
        {
        case 0:
            state = StatusPrinterState.DETAILHIDE;
            break;

        case 1:
            state = StatusPrinterState.DETAILSETUP;
            break;

        case 2:
            state            = StatusPrinterState.DETAILHIDE;
            commandText.text = "移動";
            commandPanel.SetActive(true);
            CharaMove.Set_Movablelist();
            CharaMove.Show_Movablelist();
            break;

        case 3:
            commandText.text = "攻撃";
            commandPanel.SetActive(true);
            CharaAttack.Set_Attackablelist();
            CharaAttack.Show_Attackablelist();
            break;

        default:                                                            //スキル
            Skill tempskill = BattleVal.selectedUnit.skills[showstate - 4]; //stateが3で0番目スキル
            commandText.text = tempskill.skillname;
            commandPanel.SetActive(true);
            CharaSkill.selectedskill = tempskill;
            CharaSkill.Set_Attackablelist();
            CharaSkill.Show_Attackablelist();
            break;
        }
    }