//private CharacterSelected charSelect; // References the CharacterSelected component // Use this for initialization void Start() { actionMenu = GameObject.Find("Main Camera").GetComponent<ActionMenu>(); moveConfirmMenu = GameObject.Find("Main Camera").GetComponent<MoveConfirmMenu>(); //cursorMove = GameObject.Find("Cursor").GetComponent<CursorMovement>(); emptyTileMenu = GameObject.Find("Main Camera").GetComponent<EmptyTileMenu>(); gameController = GameObject.Find("GameController").GetComponent<GameController>(); battle = GameObject.Find("GameController").GetComponent<Battle>(); //gridWorld = GameObject.Find("Grid").GetComponent<GridWorld>(); curMove = GameObject.Find("Cursor").GetComponent<CursorMovement>(); isSelected = false; moveMode = false; selectedPlayerName = ""; //charSelect = null; }
// Use this for initialization void Start() { battle = gameObject.GetComponent<Battle>(); enemyAIController = gameObject.GetComponent<EnemyAIController>(); actionMenu = GameObject.Find("Main Camera").GetComponent<ActionMenu>(); moveConfirmMenu = GameObject.Find("Main Camera").GetComponent<MoveConfirmMenu>(); levelStart = true; playerTurn = false; enemyTurn = false; attackMode = false; charIsMoving = false; displayAttackRange = false; previousMenu = ""; enemySelected = null; AddAllEnemies(); AddAllPlayers(); mapCam.enabled = true; battleCam.enabled = false; victory = false; defeat = false; //displayTurnText = true; //playerTurnStart = false; //enemyTurnStart = false; displayTurnTimer = displayTurnTextConst; audio.loop = true; //players = GameObject.FindGameObjectsWithTag("Player"); //cursorSelection = GameObject.Find("Cursor").GetComponent<CursorSelection>(); }
// Use this for initialization void Start() { cursorSel = GameObject.Find("Cursor").GetComponent<CursorSelection>(); cursorMove = GameObject.Find("Cursor").GetComponent<CursorMovement>(); gridWorld = GameObject.Find("Grid").GetComponent<GridWorld>(); moveConfirmMenu = GameObject.Find("Main Camera").GetComponent<MoveConfirmMenu>(); gameController = GameObject.Find("GameController").GetComponent<GameController>(); battle = GameObject.Find("GameController").GetComponent<Battle>(); //actionMenuOptionsBool = new bool[actionMenuOptions.Length]; selectIndex = 0; showCharActionMenu = false; waitChoosen = false; //selectedCharacterName = ""; }