/// <summary>
        /// Test conditionals are placed here.
        /// </summary>
        /// <param name="state"></param>
        /// <returns>true or false depending if transition conditions are met.</returns>
        public override string UpdateConditionalTest(baseState state)
        {
            string strOut = null;

            stateGameBase gamebase = (stateGameBase)state;

            if (aMechInputController.Inst.TouchScreen() && gamebase.StateTime > 0.5f)
            {
                strOut = m_ChangeStateName;
            }

            return(strOut);
        }
예제 #2
0
        /// <summary>
        /// Test conditionals are placed here.
        /// </summary>
        /// <param name="state"></param>
        /// <returns>true or false depending if transition conditions are met.</returns>
        public override string UpdateConditionalTest(baseState state)
        {
            string strOut = null;

            stateGameBase gamebase = (stateGameBase)state;
            aMechCube     script   = gamebase.StateGameObject.GetComponent <aMechCube>();

            if (gamebase.StateTime > script.m_UpTime)
            {
                strOut = m_ChangeStateName;
            }

            return(strOut);
        }