示例#1
0
 void Start()
 {
     fws = fws.GetComponent <Light>();
     ShowMovesButton.GetComponent <Button> ();
     PlayButton.GetComponent <Button> ();
     ReplayButton.GetComponent <Button> ();
     PlayButtonText      = PlayButton.transform.Find("Text").GetComponent <Text>();
     ShowMovesButtonText = ShowMovesButton.transform.Find("Text").GetComponent <Text> ();
     keimenaki           = omilia.transform.Find("omilia").GetComponent <Text> ();
     tip1                    = tip01.transform.Find("tip1").GetComponent <Text> ();
     tip2                    = tip02.transform.Find("tip2").GetComponent <Text> ();
     next                    = tip02.transform.Find("Symbol-forward").GetComponent <Text> ();
     previous                = tip01.transform.Find("Symbol-back").GetComponent <Text> ();
     ButtonBasic.enabled     = false;
     ButtonTurn.enabled      = false;
     ButtonPromenade.enabled = false;
     ButtonNewYork.enabled   = false;
     start.enabled           = false;
     omilia.enabled          = false;
     odhgies.enabled         = false;
     replay.enabled          = false;
     play.enabled            = false;
     end.enabled             = false;
     StartCoroutine("talk");
     StartCoroutine("emfanish");
     tip2.text     = "";
     previous.text = "";
     v             = moves.transform.position.y;
 }
示例#2
0
 void Awake()
 {
     //menuAudio = GetComponent<AudioSource>();
     restartTimer  = menuTimer;
     status_text   = StatusText.GetComponent <Text>();
     pauseLoader   = PauseButton.GetComponent <Transform>().FindChild("pause_Loader").GetComponent <Image>();
     playLoader    = PlayButton.GetComponent <Transform>().FindChild("play_Loader").GetComponent <Image>();
     restartLoader = RestartButton.GetComponent <Transform>().FindChild("restart_Loader").GetComponent <Image>();
     homeLoaderPM  = HomeButtonPM.GetComponent <Transform>().FindChild("home_Loader").GetComponent <Image>();
     homeLoaderGO  = HomeButtonGO.GetComponent <Transform>().FindChild("home_Loader").GetComponent <Image>();
 }
示例#3
0
        void Start()
        {
            OnUnPause();

            Button pausebtn = PauseButton.GetComponent <Button>();

            pausebtn.onClick.AddListener(PauseOnClick);

            Button playbtn = PlayButton.GetComponent <Button>();//スタート(ポーズ中)

            playbtn.onClick.AddListener(PlayOnClick);

            Button titlebtn = TitleButton.GetComponent <Button>();//タイトル(ポーズ中)

            titlebtn.onClick.AddListener(TitleOnClick);
        }