private void Start() { if (cameraInput == null) { if (FieldCamera != null) { cameraInput = FieldCamera.GetComponent <CameraInput>(); } else { cameraInput = JUtil.FindComponent <CameraInput>("Camera"); } } StartCoroutine(UpdateGame()); }
// load map protected void LoadMap() { if (map == null) { map = JUtil.FindComponent <Map>(); } if (map == null) { return; } if (gameInfo != null) { map.Initialize(gameInfo.mapPath); } }