Esempio n. 1
0
        private void Start()
        {
            if (cameraInput == null)
            {
                if (FieldCamera != null)
                {
                    cameraInput = FieldCamera.GetComponent <CameraInput>();
                }
                else
                {
                    cameraInput = JUtil.FindComponent <CameraInput>("Camera");
                }
            }

            StartCoroutine(UpdateGame());
        }
Esempio n. 2
0
        // load map
        protected void LoadMap()
        {
            if (map == null)
            {
                map = JUtil.FindComponent <Map>();
            }

            if (map == null)
            {
                return;
            }

            if (gameInfo != null)
            {
                map.Initialize(gameInfo.mapPath);
            }
        }