Пример #1
0
        void Start()
        {
            loadedCharacters = new Dictionary <string, Character>();
            Text             = GameObject.Find("M22ScriptText").GetComponent <Text>();
            Textrect         = GameObject.Find("M22ScriptText").GetComponent <RectTransform>();
            Textbox          = GameObject.Find("Textbox").GetComponent <Image>();
            CharacterName    = (GameObject.Find("CharName") != null ? GameObject.Find("CharName").GetComponent <Text>() : null);

            VN = new TextboxSettings(
                0,
                0,
                200,
                400,
                0, 0, 1, 0);
            VNSay = new TextboxSettings(67.5f, 49.5f, 134, 64);

            Novel = new TextboxSettings(
                0,
                0,
                0,
                0,
                0, 0, 1, 1);
            NovelTxt = new TextboxSettings(50, 50, 80, 80);

            if (VNMode == true)
            {
                SetTextBoxToVN();
            }
            else
            {
                SetTextBoxToIN();
            }
        }
Пример #2
0
        public VNHandler(GameObject _CharacterPrefab)
        {
            loadedCharacters = new Dictionary <string, Character>();
            CharacterPrefab  = _CharacterPrefab;

            VN    = new TextboxSettings(0, 0, 200, 400, 0, 0, 1, 0);
            VNSay = new TextboxSettings(67.5f, 49.5f, 134, 64);

            Novel    = new TextboxSettings(0, 0, 0, 0, 0, 0, 1, 1);
            NovelTxt = new TextboxSettings(50, 50, 80, 80);

            Awake();
            Start();
        }