Beispiel #1
0
        public void AddNewGasSo(GasSO so)
        {
            //Auto make the index based on gases count
            so.SetIndex(gases.Count);
            gases.Add(gases.Count, so);

            if (so.AssociatedReagent == null)
            {
                Debug.LogError($"{so.Name} has null associated reagent");
                return;
            }

            reagentToGas.Add(so.AssociatedReagent, so);
            gasToReagent.Add(so, so.AssociatedReagent);
        }
 private void AddNewGasSo(GasSO so)
 {
     //Auto make the index based on gases count
     so.SetIndex(gases.Count);
     gases.Add(gases.Count, so);
 }