Exemplo n.º 1
0
 void IObserver.ObserverUpdate(ISubject subject, System.Object arg)
 {
     if ((EnumWaveHand)arg == EnumWaveHand.WaveRightHandIn)
     {
         SingletonStateController.CurrrentState = SingletonStateController.State_Type.ChooseFinish;
         DataBetweenScene.SongName = SingletonLoadGameStartResources.GetInstance().StrSongName[mSongNum];
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     SingletonWaveHand.GetInstance().AddObserver(this);
     SongsPictures = SingletonLoadGameStartResources.GetInstance().ArrayTextureSongChooseImages;
     SongsWords    = SingletonLoadGameStartResources.GetInstance().ArrayTextureSongWords;
     mSong_chorus  = SingletonLoadGameStartResources.GetInstance().CurrentSong_chorus;
     mChooseRect   = new Rect(0, 0, Screen.width / 3.6f, mGapHeight * (SongsWords.Length - 1) + Screen.height / 5.45f);             // 总大小,这个要计算正确
     mItemRect     = new Rect(Screen.width / 2 + Screen.width / 65, Screen.height / 6, Screen.width / 3.2f, Screen.height / 1.55f); // 位置
     mIndex        = 0;
 }