コード例 #1
0
ファイル: CinfoBullet.cs プロジェクト: vantaino1/vietnamwar
        public CinfoBullet(string symbol, STATUS status, int speed, GUIDE guide,
            Dictionary<Texture2D, Vector2> midPos, Texture2D posImg, Point midImg)
        {
            this.symbol = symbol;
            this.status = status;

            this.speed = speed;
            this.guide = guide;
            this.posImg = posImg;
            this.midImg = midImg;
        }
コード例 #2
0
ファイル: DialogueManager.cs プロジェクト: adswqqe/MaDDaDDaBi
    private void Update()
    {
        if (ProductionMenu.activeSelf == false && sentences.Count == 0 + addSize && Request.activeSelf == false && OrderMenu.activeSelf == false && WorkstationMenu.activeSelf == false)
        {
            GUIDE.SetActive(true);
            DaabiStanding.SetActive(false);
            DaabiFinger.SetActive(false);
            TutorialManager.GetComponent <TutorialManager>().AllOn();
        }

        else if (WorkstationMenu.activeSelf == true)
        {
            GUIDE.SetActive(false);
        }
        else if (Request.activeSelf == true)
        {
            RaycastBlocking.SetActive(false);
            GUIDE.SetActive(false);

            if (sentences.Count == 11 + addSize)
            {
                DisplayNextSentence();
            }

            else if (sentences.Count == 4 + addSize)
            {
                Daabi.SetActive(false);
                DaabiStanding.SetActive(false);
                FingerMove.SetActive(false);
            }
            else if (sentences.Count == 0)
            {
                DaabiStanding.SetActive(false);
            }
            else
            {
                Daabi.SetActive(false);
                DaabiStanding.SetActive(true);
            }
            if (PopRequestMenu.activeSelf == true)
            {
                if (sentences.Count == 8 + addSize)
                {
                    DaabiStandingFinger.SetActive(false);
                    FingerMove.SetActive(true);
                    FingerMove.transform.localPosition = new Vector2(200, 235);
                }
                else
                {
                    DaabiStandingContinueButton.SetActive(true);
                    FingerMove.SetActive(false);
                    DaabiStandingFinger.SetActive(true);
                }
            }
            else if (sentences.Count == 8 + addSize)
            {
                FingerMove.transform.localPosition = new Vector2(592, 221);
            }
        }
        else if (sentences.Count == 8 + addSize)
        {
            DisplayNextSentence();
            DaabiStanding.SetActive(false);
            Daabi.SetActive(true);
            TutorialManager.GetComponent <TutorialManager>().OrderOn();
            FingerMove.transform.localPosition = new Vector2(-608, -507);
        }

        else if (OrderMenu.activeSelf == true)
        {
            RaycastBlocking.SetActive(false);
            GUIDE.SetActive(false);
            if (sentences.Count == 7 + addSize)
            {
                DisplayNextSentence();
            }
            else if (sentences.Count == 6)
            {
                Daabi.SetActive(false);
                DaabiStanding.SetActive(true);
            }
            else
            {
                Daabi.SetActive(false);
                DaabiStanding.SetActive(false);
            }
        }
        else if (sentences.Count == 6 + addSize)
        {
            DisplayNextSentence();
            Daabi.SetActive(true);
            DaabiStanding.SetActive(false);
            FingerMove.transform.localPosition = new Vector2(106, -316);
        }
        else if (sentences.Count == 5 + addSize && OrderBox.activeSelf == false)
        {
            DisplayNextSentence();
            FingerMove.transform.localPosition = new Vector2(-829, 152);
        }
        else if (ProductionMenu.activeSelf == true)
        {
            GUIDE.SetActive(false);
            if (sentences.Count == 4 + addSize)
            {
                DisplayNextSentence();

                DaabiStanding.SetActive(true);
            }
            else if (sentences.Count == 2 + addSize)
            {
                DaabiStandingFinger.SetActive(false);
            }
        }
        else
        {
            GUIDE.SetActive(true);
        }
    }