Пример #1
0
 private void Start()
 {
     gameController     = GameObject.FindGameObjectWithTag("GameController").GetComponent <MainGameSceneController>();
     player             = this.gameObject.GetComponent <PlayerController>();
     startPosition      = new Vector3(player.gameData.locX, player.gameData.locY, 0);
     transform.position = startPosition;
     world = WorldController.World;
     player.gameData.gameState = "world";
     GameDataService.updateGameData(player.gameData);
 }
Пример #2
0
 private void Awake()
 {
     createGrid();
     enemyManager   = GameObject.FindGameObjectWithTag("EnemyManager").GetComponent <EnemyManager>();
     gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MainGameSceneController>();
 }