示例#1
0
        //-----------------------------------------------------------------------------------
        void Update()
        {
            player_.UpdateTimeSlider();

            if (status_ != player_.CurrentStatus)
            {
                titleContent = new GUIContent("CaronteFX Player - " + player_.GetStatusString());
                status_      = player_.CurrentStatus;
            }
        }
示例#2
0
        //-----------------------------------------------------------------------------------
        public static CarPlayerWindow ShowWindow(CarPlayer player)
        {
            if (Instance == null)
            {
                Instance             = (CarPlayerWindow)EditorWindow.GetWindow(typeof(CarPlayerWindow), true, "CaronteFx Player - " + player.GetStatusString(), true);
                Instance.player_     = player;
                Instance.playerView_ = new CarPlayerView(player);
            }
            Instance.minSize = new Vector2(width_, height_);
            Instance.maxSize = new Vector2(width_, height_);
            Instance.status_ = player.CurrentStatus;
            Instance.Focus();

            return(Instance);
        }