// Use this for initialization void Start() { mWaveHand = SingletonWaveHand.GetInstance(); mWaveHand.AddObserver(this); //mShoulderAngle=SingletonAngle.GetInstance(); //mShoulderAngle.AddObserver(this ); //arrShoulderAngle= new ShoulderAngle[2] ; }
// 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; }