예제 #1
0
 void Start()
 {
     RC = GetComponent <RainCameraController>();
     RC.Refresh();
     RC.StopImmidiate();
     NotificationCenter.DefaultCenter().AddObserver(this, "STARTRAIN");
     NotificationCenter.DefaultCenter().AddObserver(this, "STOPRAIN");
 }
예제 #2
0
 // Use this for initialization
 protected void Awake()
 {
     base.Awake();
     CurrentType   = GestureManager.GestureTypes.Grab;
     specificEvent = grabBall;
     parent        = GameObject.Find("ParentFrozen");
     frozen        = parent.transform.GetChild(0).gameObject;
     contr         = frozen.GetComponent <RainCameraController>();
 }
예제 #3
0
파일: Storm.cs 프로젝트: sortbek/amazed
 private void Init()
 {
     _rain          = GetComponentInChildren <ParticleSystem>();
     _light         = GetComponentInChildren <Light>();
     _rainVision    = GetComponentInChildren <RainCameraController>();
     _rainAudio     = _rain.gameObject.GetComponentInChildren <AudioSource>();
     _rainEmission  = _rain.emission;
     _isInitialized = true;
     _audioList     = GameObject.Find("Thunder").GetComponentsInChildren <AudioSource>();
 }