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;
 }
 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
        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>();
 }