示例#1
0
 private void RpcRoundEnding(string winnerText)
 {
     HUDController.s_Instance.SetHudEnabled(false);
     DisableTankControl();
     m_EndScreen.StartFade(Fade.In, 2f, FadeOutEndRoundScreen);
     SetMessageText("ROUND END", winnerText);
 }
示例#2
0
        /// <summary>
        /// State up state function
        /// </summary>
        protected void StartUp()
        {
            if (m_GameSettings.isSinglePlayer)
            {
                LazyLoadLoadingPanel();
                m_LoadingScreen.StartFade(Fade.Out, 0.5f, SinglePlayerLoadedEvent);
                m_State = GameState.Inactive;
            }
            else
            {
                if (m_NetManager.AllPlayersReady())
                {
                    m_State = GameState.Preplay;
                    RpcInstantiateHudScore();
                    RpcGameStarted();

                    // Reset all ready states for players again
                    m_NetManager.ClearAllReadyStates();
                }
            }
        }
示例#3
0
 protected void Start()
 {
     fadingGroup.StartFade(Fade.In, fadeTime, StartPulsingText);
 }
示例#4
0
 // Fades the out end round screen
 private void FadeOutEndRoundScreen()
 {
     m_EndScreen.StartFade(Fade.Out, 2f);
 }
示例#5
0
 // State up state function
 protected void StartUp()
 {
     LazyLoadLoadingPanel();
     m_LoadingScreen.StartFade(Fade.Out, 0.5f, SinglePlayerLoadedEvent);
     m_State = GameState.Inactive;
 }
示例#6
0
 protected void FadeIn()
 {
     LazyLoad();
     fadingGroup.StartFade(Fade.In, fadeInTime, FadeOut, false);
 }
示例#7
0
 public void FadeIn()
 {
     Show();
     m_Fader.StartFade(Fade.In, m_FadeTime);
 }