コード例 #1
0
 protected virtual void Awake()
 {
     gameState             = Utils.FindNovaGameController().GameState;
     spriteRenderer        = GetComponent <SpriteRenderer>();
     spriteChanger         = GetComponent <SpriteChangerWithFade>();
     textureChanger        = GetComponent <OverlayTextureChangerBase>();
     dialogueBoxController = GameObject.FindWithTag("DialogueView").GetComponent <DialogueBoxController>();
 }
コード例 #2
0
 private void Awake()
 {
     image = GetComponent <Image>();
     dialogueBoxController = GetComponent <DialogueBoxController>();
     this.RuntimeAssert(image != null || dialogueBoxController != null,
                        "Missing Image or DialogueBoxController.");
     configManager = Utils.FindNovaGameController().ConfigManager;
 }
コード例 #3
0
 private void Awake()
 {
     configManager         = Utils.FindNovaGameController().ConfigManager;
     canvasGroup           = GetComponent <CanvasGroup>();
     dialogueBoxController = GetComponent <DialogueBoxController>();
     this.RuntimeAssert(canvasGroup != null || dialogueBoxController != null,
                        "Missing CanvasGroup or DialogueBoxController.");
 }
コード例 #4
0
ファイル: DebugJumpHelper.cs プロジェクト: Lunatic-Works/Nova
        private void Awake()
        {
            var gameController = Utils.FindNovaGameController();

            gameState             = gameController.GameState;
            inputMapper           = gameController.InputMapper;
            viewManager           = Utils.FindViewManager();
            dialogueBoxController = viewManager.GetController <DialogueBoxController>();
        }
コード例 #5
0
 private void Awake()
 {
     configManager               = Utils.FindNovaGameController().ConfigManager;
     dialogueBoxController       = GetComponent <DialogueBoxController>();
     configTextPreviewController = GetComponent <ConfigTextPreviewController>();
     this.RuntimeAssert(
         dialogueBoxController != null || configTextPreviewController != null,
         "Missing DialogueBoxController or ConfigTextPreviewController."
         );
 }
コード例 #6
0
    static int _CreateNova_DialogueBoxColor(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                Nova.DialogueBoxController arg0 = (Nova.DialogueBoxController)ToLua.CheckObject <Nova.DialogueBoxController>(L, 1);
                Nova.DialogueBoxColor.Type arg1 = (Nova.DialogueBoxColor.Type)ToLua.CheckObject(L, 2, typeof(Nova.DialogueBoxColor.Type));
                Nova.DialogueBoxColor      obj  = new Nova.DialogueBoxColor(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.DialogueBoxColor.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #7
0
 private void Awake()
 {
     configManager         = Utils.FindNovaGameController().ConfigManager;
     dialogueBoxController = GetComponent <DialogueBoxController>();
 }
コード例 #8
0
 public DialogueBoxColor(DialogueBoxController dialogueBoxController, Type type)
 {
     this.dialogueBoxController = dialogueBoxController;
     this.type = type;
 }
コード例 #9
0
 private void Awake()
 {
     controller = GetComponent <DialogueBoxController>();
 }
コード例 #10
0
 protected virtual void Awake()
 {
     gameState             = Utils.FindNovaGameController().GameState;
     dialogueBoxController = Utils.FindViewManager().GetController <DialogueBoxController>();
     textureChanger        = GetComponent <OverlayTextureChangerBase>();
 }