public Vector3 GetCurrentPoint() { float param = mBoss.GetParam(); float phaseDiff = mPhase * mDelta * (float)mN; float t = param + phaseDiff; Vector3 p = GetLocalPointFromCircleParam(mRadius, t); p = p + transform.position; return(p); }
private void Reset() { if (mBoss == null) { return; } mIsSpreading = false; float currParam = mBoss.GetParam(); GameObject bossgo = mBoss.gameObject; Destroy(bossgo); mBoss = null; Setup(); mBoss.SetParam(currParam); if (!mParticlesOn) { SwitchParticlesOnOff(false); } }