void AttachSkySphere(SkySpherePtr p){ if (mSkySphere) mSkySphere->OnDetachedFromScene(mSelfPtr.lock()); mSkySphere = p; if (mSkySphere){ mSkySphere->OnAttachedToScene(mSelfPtr.lock()); } }
void DetachSkySphere(){ if (mSkySphere){ mSkySphere->OnDetachedFromScene(mSelfPtr.lock()); mSkySphere = 0; } }