// Use this for initialization public USquareGridSelector(PrefabCache prefab_cache) { this.prefab_cache = prefab_cache; this.active_unit_cache = new USelectableCache(this.prefab_cache.GetPrefab(this.ACTIVE_UNIT_PREFAB)); this.moveable_cache = new USelectableCache(this.prefab_cache.GetPrefab(this.MOVEABLE_PREFAB)); this.move_target_cache = new USelectableCache(this.prefab_cache.GetPrefab(this.MOVE_TARGET_PREFAB)); this.moveable = new HashSet <ISelectable>(); }
public bool BelongsTo(USelectableCache cache) { return(this.cache == cache); }
public USelectableMixin(ISelectable selectable, GameObject g, USelectableCache cache) { this.selectable = selectable; this.g = g; this.cache = cache; }