2using System.Collections;
3using System.Collections.Generic;
39 m_NoiseObject = GameObject.FindGameObjectWithTag(
"NoisePattern");
51 if( GameObject.FindGameObjectWithTag(
"Avatar") ==
null )
106 Debug.Log(
"Incorect Input. Can't Change Labele");
107 m_NoiseLable.text =
"!!! Noise: Error !!!";
121 m_NoiseLable.text = noise;
ColoredNoise
Describes the type of colored noise.
A singleton Instance to track Camera Movements This will also calculate distance, rotation and speed ...
static CamMovementTracker m_CamTrackerInstance
Singleton Instance We have 1 Camera instance and 1 User at all time. Therefore, I believe Singleton i...
float Speed
Property to get and set Speed.
Apply a constant speed for the whole walk cycle.
void RemoveAllNoiseComponents()
This class is used to set noise pattern levels. When user press a button, it will change the pattern.
RemoveAllComponents m_Remover
void SetColoredObject(string noise)
Set the lable and removed previously attached noise game objects. For example, when we transit from p...
TextMeshPro m_AvatarLable
This will show the player's current speed in Avatar label.
bool m_Flag
A flag to check wheather an avatar is spawned or not.
void SetNoisePattern(int pattern)
Gets called from the button's OnClick event. 0 is for deafult pattern 1 is for Pink noise pattern....
TextMeshPro m_NoiseLable
This will show the user selection of the pattern under the avatar in avatar panel.
ColoredNoise GetNoisePattern()
Gettr to get the user's selection.
ColoredNoise m_PatternType
This will hold the user's selected pattern.
TextMeshPro m_NoiseLableInNoiseDataPanel
This will show the user selection of the pattern under the NoiseDataPanel.
void SetPatternLable()
Sets the label according to the user selection. User can see what they selected in Avatar panel under...
Handle the Random (White) Noise.