Ejemplo n.º 1
0
    //엔딩화면을 출력하는 코드
    public void Ending()
    {
        //원 중복해서 나오는 것을 방지 -
        TextIn.Erase();

        //끝난 후에 메인메뉴로 넘어감
        SceneManager.LoadScene("MenuScene2");
    }
Ejemplo n.º 2
0
            public void WriteIn(string identifier)
            {
                Trace.WriteLine(string.Format("Writing into {0}", identifier));
                //the intercal model is stream-based - calling WriteIn reads as
                //many chars as there are in the array (or fewer if EOF is reached)
                //Console.Write("{0}?>", s);

                int[] idx = new int[1];

                if ((identifier[0] == ',') || (identifier[0] == ';'))
                {
                    ArrayVariable av = this.Variables[identifier] as ArrayVariable;
                    if (av.Rank != 1)
                    {
                        throw new IntercalException(Messages.E241);
                    }

                    for (int i = av.GetLowerBound(0); i <= av.GetUpperBound(0); i++)
                    {
                        idx[0] = i;

                        uint c = (uint)BinaryOut.ReadChar();

                        uint v = (c - this.LastIn) % 256;
                        this.LastIn = c;

                        Trace.WriteLine(string.Format("Writing '{0}' into index {1}", (char)c, i));
                        this[identifier, idx] = v;
                    }
                }
                else
                {
                    string input = TextIn.ReadLine();
                    try
                    {
                        //Note that this compiler today only works in wimpmode.  To do it
                        //right we will need to have satellite assemblies, one for each of
                        //many different languages.
                        this[identifier] = UInt32.Parse(input);
                    }
                    catch
                    {
                        Lib.Fail(String.Format(Messages.E579, input));
                    }
                }
            }
Ejemplo n.º 3
0
 private void Image_PointerPressed(object sender, PointerRoutedEventArgs e)
 {
     if (ValueStack.Width == 200)
     {
         TextIn.Stop();
         TextOut.Stop();
         TextOut.Begin();
         arrow.Source = new BitmapImage(new Uri("ms-appx:///Assets/arrow-right3.png"));
     }
     else
     {
         TextIn.Stop();
         TextOut.Stop();
         TextIn.Begin();
         arrow.Source = new BitmapImage(new Uri("ms-appx:///Assets/left-arrow.png"));
     }
 }
Ejemplo n.º 4
0
    //if문 구별 조건 변수


    void Start()
    {
        obj0.SetActive(false);
        obj1.SetActive(false);
        obj2.SetActive(false);
        obj3.SetActive(false);
        obj4.SetActive(false);
        obj5.SetActive(false);



        //텍스트에 저장된 리스트를 한줄씩 읽어 그 타임대로 함수를 호출
        for (int i = 0; i < TextIn.list.Count; i++)
        {
            Invoke("Draw", TextIn.Bal()[i] - 0.91f);
            // Invoke("Erase", TextIn.Bal()[i]+1.2f);
        }
        Invoke("Ending", TextIn.Bal()[TextIn.list.Count - 1] + 2.0f);
    }
Ejemplo n.º 5
0
 private void ButtonC_Click(object sender, RoutedEventArgs e)
 {
     TextIn.Clear();
 }