Ejemplo n.º 1
0
        //private float nextTick = 0;

        public void Update()
        {
            if (GameSettings.MODIFIER_KEY.GetKey() && Input.GetKeyDown(KeyCode.T))
            {
                customGameVariables.Test();
            }

            //if (((EditorDriver.fetch != null && EditorDriver.fetch.restartingEditor )|| Time.unscaledTime > nextTick) && customGameVariables != null)
            //{
            //    nextTick = Time.unscaledTime + 5;
            //    StringBuilder sb = new StringBuilder();
            //    sb.AppendLine();
            //    sb.AppendLine($" {EditorDriver.fetch != null && EditorDriver.fetch.restartingEditor} {customGameVariables.levelsTracking:F3} {customGameVariables.upgradesTracking.Length}");
            //    foreach (ScenarioUpgradeableFacilities.ProtoUpgradeable facility in ScenarioUpgradeableFacilities.protoUpgradeables.Values)
            //    {
            //        if (facility.facilityRefs.Count > 0)
            //        {
            //            sb.AppendLine(facility.facilityRefs.First().id +
            //                          " lvl " + facility.facilityRefs.First().FacilityLevel +
            //                          " / " + facility.facilityRefs.First().MaxLevel +
            //                          " = " + facility.facilityRefs.First().GetNormLevel());
            //            sb.AppendLine( facility.configNode.CountNodes + " " + facility.configNode.CountValues + " " +  facility.configNode.ToString());
            //        }
            //    }
            //    sb.AppendLine("------------");
            //    log(sb.ToString());
            //}
        }
Ejemplo n.º 2
0
        public void Update()
        {
#if DEBUG
            if (GameSettings.MODIFIER_KEY.GetKey() && Input.GetKeyDown(KeyCode.T))
            {
                customGameVariables.Test();
            }
#endif
        }