//----------------------------------------------------------------------------------- void Update() { player_.UpdateTimeSlider(); if (status_ != player_.CurrentStatus) { titleContent = new GUIContent("CaronteFX Player - " + player_.GetStatusString()); status_ = player_.CurrentStatus; } }
//----------------------------------------------------------------------------------- public static CRPlayerWindow ShowWindow(CRPlayer player) { if (Instance == null) { Instance = (CRPlayerWindow)EditorWindow.GetWindow(typeof(CRPlayerWindow), true, "CaronteFx Player - " + player.GetStatusString(), true); Instance.player_ = player; Instance.playerView_ = new CRPlayerView(player); } Instance.minSize = new Vector2(width_, height_); Instance.maxSize = new Vector2(width_, height_); Instance.status_ = player.CurrentStatus; Instance.Focus(); return(Instance); }