Beispiel #1
0
 private void refreshCellColor(Cell cell, CelestialBody body, Color32[] colors, KethaneData data)
 {
     var deposit = data.GetCellDeposit(resource.Resource, body, cell);
     var scanned = data.Scans[resource.Resource][body.name][cell];
     var bodyResources = data.PlanetDeposits[resource.Resource][body.name];
     var color = (revealAll ? deposit != null : scanned) ? getDepositColor(resource, bodyResources, deposit) : colorUnknown;
     setCellColor(cell, color, colors);
 }
Beispiel #2
0
 public override void OnAwake()
 {
     Current = this;
     Debug.LogFormat("[KethaneData] OnAwake");
 }
Beispiel #3
0
 void OnDestroy()
 {
     Current = null;
 }
Beispiel #4
0
        private void refreshCellColor(GeodesicGrid.Cell cell, CelestialBody body, Color32[] colors, KethaneData data)
        {
            var deposit = data.GetCellDeposit(resource.Resource, body, cell);
            var scanned = data.Scans[resource.Resource][body.name][cell];
            var color   = (revealAll ? deposit != null : scanned) ? getDepositColor(resource, deposit) : colorUnknown;

            setCellColor(cell, color, colors);
        }