Example #1
0
        public void automatic()
        {
            if (world.map.automatic == false)
            {
                return;
            }

            float dT = Time.time - lastAutoturn;

            if ((dT > 0.5 && Input.GetKey(KeyCode.LeftControl)) || Input.GetKey(KeyCode.LeftAlt))
            {
                world.bEndTurn();
                lastAutoturn = Time.time;
            }
        }