예제 #1
0
    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);
    }
예제 #2
0
    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);
        }
    }