コード例 #1
0
 public void InitCinematics()
 {
     if (loader.cinematicsManager != null && loader.cinematicsManager.cinematics.Count > 0)
     {
         cinematicSwitcher = new GameObject("Cinematic Switcher").AddComponent <CinematicSwitcher>();
         cinematicSwitcher.Init();
     }
 }
コード例 #2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        CinematicSwitcher pb = (CinematicSwitcher)target;

        pb.cinematicIndex = EditorGUILayout.Popup("Current cinematic", pb.cinematicIndex, pb.cinematicNames);
    }