Пример #1
0
        public override void Runing()
        {
            DeBugRun();
            PrintHelper.PrintStoryText(new StringBuilder().Append(GameMainRecycle.InfoText), GameRoom.LineLength);
            QuestInfoRoomScript questRoom = (QuestInfoRoomScript)GameMainRecycle.RoomScripts.Group[typeof(QuestInfoRoomScript).Name];

            SelectText.Clear();
            SelectQuest.Clear();
            foreach (var item in Quests)
            {
                SelectQuest.Add(questRoom.Quests.Group[item]);
                SelectText.Add(questRoom.Quests.Group[item].Name);
            }
            OutRoom = LastRoom;
            if (RetureRoom == false)
            {
                SelectIndex = 999;
            }

            SelectIndex = PrintHelper.PrintSelectText(SelectText, SelectIndex);
            if (SelectIndex <= SelectText.Count)
            {
                GameMainRecycle.PlayerInfo.PlayerQuest = (GameQuest)SelectQuest[SelectIndex].Clone();
            }
        }
Пример #2
0
    // テキストファイルを処理
    public void LoadSelectTextData(TextAsset textfile)
    {
        string select_texts = textfile.text;

        string[] lines = select_texts.Split('\n');

        foreach (var line in lines)
        {
            if (line == "")
            {
                continue;
            }
            Debug.Log(line);
            string[] words = line.Split();

            int n = 0;

            SelectText selecttext_data = new SelectText();
            foreach (var word in words)
            {
                if (word.StartsWith("#"))
                {
                    break;
                }
                if (word == "")
                {
                    continue;
                }

                switch (n)
                {
                case 0:     // 読み込んだ値をmessageに入れる
                    selecttext_data.message = word;
                    break;

                case 1:
                    selecttext_data.addlove = int.Parse(word);
                    break;
                }

                n++;
            }

            if (n >= 2)
            {
                this.selectdatas.Add(selecttext_data);
            }
        }
    }
Пример #3
0
 private void OnSelectText(int start, int length, Color?color, bool scroll)
 {
     SelectText?.Invoke(start, length, color, scroll);
 }
        void ReleaseDesignerOutlets()
        {
            if (btnShare != null)
            {
                btnShare.Dispose();
                btnShare = null;
            }

            if (Count != null)
            {
                Count.Dispose();
                Count = null;
            }

            if (FacebookImage != null)
            {
                FacebookImage.Dispose();
                FacebookImage = null;
            }

            if (FacebookSwitch != null)
            {
                FacebookSwitch.Dispose();
                FacebookSwitch = null;
            }

            if (FacebookText != null)
            {
                FacebookText.Dispose();
                FacebookText = null;
            }

            if (ReferralString != null)
            {
                ReferralString.Dispose();
                ReferralString = null;
            }

            if (SelectText != null)
            {
                SelectText.Dispose();
                SelectText = null;
            }

            if (ShareMessage != null)
            {
                ShareMessage.Dispose();
                ShareMessage = null;
            }

            if (TwitterImage != null)
            {
                TwitterImage.Dispose();
                TwitterImage = null;
            }

            if (TwitterSwitch != null)
            {
                TwitterSwitch.Dispose();
                TwitterSwitch = null;
            }

            if (TwitterText != null)
            {
                TwitterText.Dispose();
                TwitterText = null;
            }

            if (vBottomRightBasis != null)
            {
                vBottomRightBasis.Dispose();
                vBottomRightBasis = null;
            }
        }