コード例 #1
0
 private void Update()
 {
     System.Random rng = new System.Random();
     if (nextFeed < Time.timeSinceLevelLoad)
     {
         nextFeed += CurrentDuration;
         windowHandler.AddWindow(GameManager.GM.NewFeed().mFeed, null, Icons[rng.Next(Icons.Length - 1)]);
     }
 }
コード例 #2
0
    public void SerachButton()
    {
        if (inputField.text == "")
        {
            return;
        }

        if (inputField.text.StartsWith("/"))
        {
            GameManager.IC.InterpretCommand(inputField.text);
        }
        else if (GameManager.GM.SerachForFilter(inputField.text))
        {
            statsWindows.AddWindow("you found the Filter " + inputField.text + " and it has been removed", Correct);//===== ===== Static String ===== =====
        }
        else
        {
            statsWindows.AddWindow(inputField.text + " was no Filter", False);//===== ===== Static String ===== =====
        }
        inputField.text = "";
        inputField.ActivateInputField();
    }