void Awake() { instance = this; Application.targetFrameRate = 60; tickTime = 15 * Time.deltaTime; style = new GUIStyle(); style.fontSize = 20; style.normal.textColor = Color.red; FillEnv(); pillMgr = new PillarMgr(pillar); env.Init(); }
void Awake() { instance = this; if (mode == TrainMode.Internal) { env = new InternalEnv(); } else { env = new ExternalEnv(); } tickTime = 15 * Time.deltaTime; env.Init(); }