Ejemplo n.º 1
0
        public void AddToList(int room, RoomGasSetter toAdd)
        {
            if (toSet.ContainsKey(room))
            {
                Logger.LogError($"Room number: {room} was already added, cant add {toAdd.gameObject.ExpensiveName()}");
                return;
            }

            toSet.Add(room, toAdd);
        }
Ejemplo n.º 2
0
        public void AddToListOccupied(Vector3Int localPos, RoomGasSetter toAdd)
        {
            if (toSetOccupied.ContainsKey(localPos))
            {
                Logger.LogError($"Local pos: {localPos} was already added, cant add {toAdd.gameObject.ExpensiveName()}");
                return;
            }

            toSetOccupied.Add(localPos, toAdd);
        }