// Use this for initialization void Start() { mInstance = this; mListObservers = new List <IObserver>(); _leftHand = GameObject.FindWithTag("Player1 Left Hand"); if (_leftHand == null) { Debug.Log("Can't find left hand gameobject"); } _rightHand = GameObject.FindWithTag("Player1 Right Hand"); if (_rightHand == null) { Debug.Log("Can't find right hand gameobject"); } _torse = GameObject.FindWithTag("Player1 Torso"); if (_torse == null) { Debug.Log("Can't find torso gameobject"); } //Fixed timesetp is 0.02 and I want to get the data in 0.5 second. _arrayDeltaLeftX = new float[_frameNum]; _arrayDeltaLeftY = new float[_frameNum]; _arrayDeltaRightX = new float[_frameNum]; _arrayDeltaRightY = new float[_frameNum]; _arrayDeltaTorse = new float[_frameNum]; ClearAllDeltaData(); }
// 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; }