private void HandleTimerExpired(CColorFadeTimer timer) { Transform accelBall = timer.transform; accelBall.localPosition = Vector3.zero; m_accelBallPool.Return(accelBall); }
void Start() { m_gestures = GetComponent <CMobile3dGestures>(); m_instructions = GameObject.Find("Canvas/Instructions"); m_left = GameObject.Find("Canvas/Left").GetComponent <CColorFadeTimer>(); m_right = GameObject.Find("Canvas/Right").GetComponent <CColorFadeTimer>(); m_back = GameObject.Find("Canvas/Back").GetComponent <CColorFadeTimer>(); m_forward = GameObject.Find("Canvas/Forward").GetComponent <CColorFadeTimer>(); m_down = GameObject.Find("Canvas/Down").GetComponent <CColorFadeTimer>(); m_up = GameObject.Find("Canvas/Up").GetComponent <CColorFadeTimer>(); m_gestures.HandleGesture += ProcessGesture; m_gestures.Begin(); }