public void InitCinematics() { if (loader.cinematicsManager != null && loader.cinematicsManager.cinematics.Count > 0) { cinematicSwitcher = new GameObject("Cinematic Switcher").AddComponent <CinematicSwitcher>(); cinematicSwitcher.Init(); } }
public override void OnInspectorGUI() { DrawDefaultInspector(); CinematicSwitcher pb = (CinematicSwitcher)target; pb.cinematicIndex = EditorGUILayout.Popup("Current cinematic", pb.cinematicIndex, pb.cinematicNames); }