Beispiel #1
0
    //TODO
    public static Selection_Option_List RetrieveOptionList(string id)
    {
        Selection_Option_List list = null;

        list = list_of_option_lists.Find(x => x.list_id == id);
        return(list);
    }
Beispiel #2
0
    void Start()
    {
        attack_cooldown_current = attack_cooldown_default;
        attack_radius_current   = attack_radius_default;
        attack_damage_current   = attack_damage_default;

        time_since_last_attack = Time.time;
        flag_show_cooldown_bar = false;

        current_attack_priority = AttackPriority.hp_lowest;
        StartTowerBehaviorLoop();

        //AttachResourceAttributes(); //obsolete

        if (selection_options_list == null)
        {
            selection_options_list = gameObject.AddComponent <Selection_Option_List>();
        }
        selection_options_list.AttachTo(this);

        OnSpawn?.Invoke(this, new TowerV2RefEventArgs(this));
    }
 void UpdateOptionsList(Selection_Option_List opt)
 {
     cur_options_list = opt;
 }