Ejemplo n.º 1
0
        public override void OnEnable()
        {
            base.OnEnable();

            characterProp          = serializedObject.FindProperty("character");
            portraitProp           = serializedObject.FindProperty("portrait");
            storyTextProp          = serializedObject.FindProperty("storyText");
            descriptionProp        = serializedObject.FindProperty("description");
            voiceOverClipProp      = serializedObject.FindProperty("voiceOverClip");
            voiceClipNameProp      = serializedObject.FindProperty("voiceClipName");
            PreVoiceClipNameProp   = serializedObject.FindProperty("PreVoiceClipName");
            showAlwaysProp         = serializedObject.FindProperty("showAlways");
            showNeedNameProp       = serializedObject.FindProperty("needName");
            showAfterHowManyNumber = serializedObject.FindProperty("AfterHowManyNumber");
            showCountProp          = serializedObject.FindProperty("showCount");
            extendPreviousProp     = serializedObject.FindProperty("extendPrevious");
            fadeWhenDoneProp       = serializedObject.FindProperty("fadeWhenDone");
            waitForClickProp       = serializedObject.FindProperty("waitForClick");
            stopVoiceoverProp      = serializedObject.FindProperty("stopVoiceover");
            setSayDialogProp       = serializedObject.FindProperty("setSayDialog");
            playTypeProp           = serializedObject.FindProperty("playType");
            sayDialogAnimProp      = serializedObject.FindProperty("sayDialogAnim");
            waitForVOProp          = serializedObject.FindProperty("waitForVO");
            //protrait parts
            portraitPresetIndexProp  = serializedObject.FindProperty("portraitPresetIndex");
            portraitLayerSettingProp = serializedObject.FindProperty("portraitLayerSetting");
            animPressetIndexProp     = serializedObject.FindProperty("animPressetIndex");
            animClipsProp            = serializedObject.FindProperty("animClips");


            if (blackTex == null)
            {
                blackTex = CustomGUI.CreateBlackTexture();
            }
        }
Ejemplo n.º 2
0
        protected virtual void OnEnable()
        {
            if (NullTargetCheck()) // Check for an orphaned editor instance
            {
                return;
            }

            characterProp      = serializedObject.FindProperty("character");
            portraitProp       = serializedObject.FindProperty("portrait");
            storyTextProp      = serializedObject.FindProperty("storyText");
            descriptionProp    = serializedObject.FindProperty("description");
            voiceOverClipProp  = serializedObject.FindProperty("voiceOverClip");
            showAlwaysProp     = serializedObject.FindProperty("showAlways");
            showCountProp      = serializedObject.FindProperty("showCount");
            extendPreviousProp = serializedObject.FindProperty("extendPrevious");
            fadeWhenDoneProp   = serializedObject.FindProperty("fadeWhenDone");
            waitForClickProp   = serializedObject.FindProperty("waitForClick");
            stopVoiceoverProp  = serializedObject.FindProperty("stopVoiceover");
            setSayDialogProp   = serializedObject.FindProperty("setSayDialog");
            waitForVOProp      = serializedObject.FindProperty("waitForVO");

            if (blackTex == null)
            {
                blackTex = CustomGUI.CreateBlackTexture();
            }
        }
Ejemplo n.º 3
0
        public override void OnEnable()
        {
            base.OnEnable();

            characterProp      = serializedObject.FindProperty("character");
            portraitProp       = serializedObject.FindProperty("portrait");
            storyTextProp      = serializedObject.FindProperty("storyText");
            descriptionProp    = serializedObject.FindProperty("description");
            voiceOverClipProp  = serializedObject.FindProperty("voiceOverClip");
            showAlwaysProp     = serializedObject.FindProperty("showAlways");
            showCountProp      = serializedObject.FindProperty("showCount");
            extendPreviousProp = serializedObject.FindProperty("extendPrevious");
            fadeWhenDoneProp   = serializedObject.FindProperty("fadeWhenDone");
            waitForClickProp   = serializedObject.FindProperty("waitForClick");
            stopVoiceoverProp  = serializedObject.FindProperty("stopVoiceover");
            setSayDialogProp   = serializedObject.FindProperty("setSayDialog");
            waitForVOProp      = serializedObject.FindProperty("waitForVO");

            if (blackTex == null)
            {
                blackTex = CustomGUI.CreateBlackTexture();
            }
        }