예제 #1
0
        //Update is called every frame.
        void Update()
        {
            //if (Input.GetKeyUp(KeyCode.T))
            //{
            _shadowManager.CalcLightedEdges(boardScript.ListWalls, _player.transform.position);
            //}
            //Check that playersTurn or enemiesMoving or doingSetup are not currently true.
            if (playersTurn || enemiesMoving || doingSetup)
            {
                //If any of these are true, return and do not start MoveEnemies.
                return;
            }

            //Start moving enemies.
            StartCoroutine(MoveEnemies());
        }