Ejemplo n.º 1
0
            private void NextCommunication()
            {
                Debug.Log(string.Concat(new object[]
                {
                    "New com att: ",
                    base.action.ToString(),
                    " ",
                    this.communicationIndex
                }));
                switch (base.action)
                {
                case Action.MeetWhite_Texting:
                    this.chatLabel.NewPhrase(this.communicationIndex);
                    break;

                case Action.MeetWhite_Images:
                    if (this.showImage != null)
                    {
                        this.showImage.Destroy();
                    }
                    switch (this.communicationIndex)
                    {
                    case 0:
                        this.showImage          = base.oracle.myScreen.AddImage("AIimg1");
                        this.communicationPause = 380;
                        break;

                    case 1:
                        this.showImage          = base.oracle.myScreen.AddImage("AIimg2");
                        this.communicationPause = 290;
                        break;

                    case 2:
                    {
                        ProjectionScreen myScreen = base.oracle.myScreen;
                        List <string>    list     = new List <string>();
                        list.Add("AIimg3a");
                        list.Add("AIimg3b");
                        this.showImage          = myScreen.AddImage(list, 15);
                        this.communicationPause = 330;
                        break;
                    }
                    }
                    if (this.showImage != null)
                    {
                        base.oracle.room.PlaySound(SoundID.SS_AI_Image, 0f, 1f, 1f);
                        this.showImage.lastPos   = this.showMediaPos;
                        this.showImage.pos       = this.showMediaPos;
                        this.showImage.lastAlpha = 0f;
                        this.showImage.alpha     = 0f;
                        this.showImage.setAlpha  = new float?(1f);
                    }
                    break;
                }
                this.communicationIndex++;
            }
Ejemplo n.º 2
0
 public void Initialize()
 {
     spot.Initialize();
     screen = new ProjectionScreen(gameObject, spot, projectionScreenTarget);
     Disable();
 }