Example #1
0
            public void reset(Constructable constructable)
            {
                if (constructable == null)
                {
#if DBG_CPOINTS
                    debugSphere.SetActive(false);
#endif
                    constructionTime = 0f;
                    return;
                }

                constructionInterval = UnityEngine.Random.Range(pointSwitchTimeMin, pointSwitchTimeMax);
                constructionPoint    = constructable.GetRandomConstructionPoint();
                constructionTime    %= constructionInterval;
#if DBG_CPOINTS
                debugSphere.SetActive(true);
                debugSphere.transform.position = constructionPoint;
#endif
            }