コード例 #1
0
 void Start()
 {
     audioSetup();
     welcomePanel.SetActive(true);
     welcomePhrase = "when the stars begin to shine, pharaohs breathe from the underworld\n....... ";
     StartCoroutine(showText(welcomePhrase, welcomeText));
     GroupID           = GameManager.getGroupID();
     artifacts         = 0;
     artifactText.text = "ARTIFACTS   0";
     progressPanel.SetActive(false);
     startStringUp  = "____ __ ";
     finalStringUp  = "rise of ";
     startString    = "________";
     finalString    = "PHARAOHS";
     NameText2.text = startString;
     NameText1.text = startStringUp;
     IndexObject.SetActive(true);
     IndexObject.GetComponentInChildren <TextMeshProUGUI>().text = GameManager.getName(int.Parse(GameManager.getIndexNo())) + "\n" + GameManager.getIndexNo();
     if (GameManager.getGender(int.Parse(GameManager.getIndexNo())) == 'F')
     {
         profPic.sprite = FemaleProfPic;
     }
     else
     {
         profPic.sprite = MaleProfPic;
     }
 }
コード例 #2
0
 void Start()
 {
     source      = this.GetComponent <AudioSource>();
     source.clip = egypt1;
     source.Play();
     fullText        = "you belong to the followers of";
     loadingfullText = " 0 0 0 0 0";
     imageTargetname = "ImageTarget";
     GroupID         = GameManager.getGroupID();
     if (GroupID > 0)
     {
         myGod = GameManager.getGodInfo(GroupID);
     }
     IndexObject.SetActive(true);
     IndexObject.GetComponentInChildren <TextMeshProUGUI>().text = GameManager.getName(int.Parse(GameManager.getIndexNo())) + "\n" + GameManager.getIndexNo();
     if (GameManager.getGender(int.Parse(GameManager.getIndexNo())) == 'F')
     {
         profPic.sprite = FemaleProfPic;
     }
     else
     {
         profPic.sprite = MaleProfPic;
     }
     allDeactive();
     activateFactions();
     button.gameObject.SetActive(false);
     StartCoroutine(showText(fullText, topText));
     trackingStatus = "TRACKED";
     StatusChanger();
 }
コード例 #3
0
    private void Start()
    {
        welcomePhrase = "when the sun sets over the nile, mummies start to roam the land of the pyramids \n.......";
        Egypt         = this.GetComponent <AudioSource>();
        if (!GameManager.getIsCompleted())
        {
            GameManager.ReceiveSavedData();
            welcomePanel.SetActive(true);
            typing = welcomePanel.GetComponent <AudioSource>();
            StartCoroutine(showText(welcomePhrase, welcomeText, typing));
        }
        else
        {
            Egypt.Play();
        }
        GroupID = GameManager.getGroupID();
        GameManager.createGods();
        if (GroupID > 0)
        {
            myGod = GameManager.getGodInfo(GroupID);
        }
        revealPanel.SetActive(false);
        factionPanel.SetActive(false);
        nextPanel.SetActive(false);

        if (GameManager.getInitial() == 0)
        {
            factionButton.SetActive(false);
            infoButton.SetActive(false);
            IndexObject.SetActive(false);
        }
        else
        {
            factionButton.SetActive(true);
            infoButton.SetActive(true);
            IndexObject.SetActive(true);
            IndexObject.GetComponentInChildren <TextMeshProUGUI>().text = GameManager.getName(int.Parse(GameManager.getIndexNo())) + "\n" + GameManager.getIndexNo();
            if (GameManager.getGender(int.Parse(GameManager.getIndexNo())) == 'F')
            {
                profPic.sprite = FemaleProfPic;
            }
            else
            {
                profPic.sprite = MaleProfPic;
            }
            switch (GroupID)
            {
            case 1:
                godSprite = Horus;
                break;

            case 2:
                godSprite = Bastet;
                break;

            case 3:
                godSprite = Osiris;
                break;

            case 4:
                godSprite = Anubis;
                break;
            }
        }
    }