コード例 #1
0
    // 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>();
    }
コード例 #2
0
ファイル: ISelectable.cs プロジェクト: charredlot/square_grid
 public bool BelongsTo(USelectableCache cache)
 {
     return(this.cache == cache);
 }
コード例 #3
0
ファイル: ISelectable.cs プロジェクト: charredlot/square_grid
 public USelectableMixin(ISelectable selectable, GameObject g, USelectableCache cache)
 {
     this.selectable = selectable;
     this.g          = g;
     this.cache      = cache;
 }