Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     panel = GameObject.FindGameObjectWithTag("TagPanel");
     panel.SetActive(false);
     active_unit_marker = GetComponent <ActiveUnitMarker>();
     htecs          = new Htecs(active_unit_marker);
     action_pending = false;
 }
Esempio n. 2
0
    public Htecs(ActiveUnitMarker _active_unit_marker)
    {
        in_combat          = false;
        readies            = new SortedList <float, ActiveUnit>();
        active_unit_marker = _active_unit_marker;
        test_harness();

        begin_combat();
    }
Esempio n. 3
0
    // Use this for initialization

    public ActiveUnit(ActiveUnitMarker _active_unit_marker, string _name, HexGridCoord _position, float _ap_increment = 20f)
    {
        panel              = GameObject.FindGameObjectWithTag("TagTimeline");
        name               = _name;
        ap_increment       = _ap_increment;
        active_unit_marker = _active_unit_marker;
        position           = _position;

        add_timeline_marker();
        map_marker = active_unit_marker.visualize(position);
    }