// public method #endregion "public method" #region "private method" // private method #region "Message Functions" // "Message Functions" private void Msg_Throw(CC_MsgParam param) { GameObject cubeGO = param.m_Object as GameObject; Transform cubeTr = m_CubeTr = cubeGO.transform; Vector3 curPos = cubeTr.position; Vector3 dstPos = _GetThrowDestPos(); m_Parabola.Init(curPos, dstPos, m_ThrowTime, 3 * 9.8f); m_bCubeThrown = true; }
private void Msg_UsrCtrl(CC_MsgParam p) { _TakeControl(p.m_bool); }