Beispiel #1
0
    public void select()
    {
        GameObject       marker      = GameObject.Find("enemyArrowMarker");
        EnemyMarkerArrow enemyMarker = (EnemyMarkerArrow)marker.GetComponent("EnemyMarkerArrow");

        enemyMarker.selectionActive = true;
        selectionActive             = false;
        BattleLogic logic = (BattleLogic)GameObject.Find("Main Camera").GetComponent("BattleLogic");

        logic.isAbilityAttack = true;
        enemyMarker.refreshMarker();
        marker.renderer.enabled = true;
    }
Beispiel #2
0
 public void select()
 {
     if (currentItemPosition == 0)
     {
         GameObject       marker      = GameObject.Find("enemyArrowMarker");
         EnemyMarkerArrow enemyMarker = marker.GetComponent <EnemyMarkerArrow>();
         enemyMarker.selectionActive = true;
         selectionActive             = false;
         enemyMarker.refreshMarker();
         marker.renderer.enabled = true;
     }
     else if (currentItemPosition == 1)
     {
         GameObject         marker        = GameObject.Find("abilityArrowMarker");
         AbilityMarkerArrow abilityMarker = marker.GetComponent <AbilityMarkerArrow>();
         abilityMarker.selectionActive = true;
         selectionActive = false;
         abilityMarker.showActionPopup();
     }
 }