/// <summary> /// 破棄 /// </summary> protected virtual void OnDispose() { if (MagicaPhysicsManager.IsInstance() == false) { return; } // 風を破棄する RemoveWind(); }
//========================================================================================= /// <summary> /// 風削除 /// </summary> protected void RemoveWind() { if (MagicaPhysicsManager.IsInstance()) { if (windId >= 0) { MagicaPhysicsManager.Instance.Wind.RemoveWind(windId); } } windId = -1; }
/// <summary> /// 風無効化 /// </summary> protected void DisableWind() { if (MagicaPhysicsManager.IsInstance() == false) { return; } if (windId >= 0) { MagicaPhysicsManager.Instance.Wind.SetEnable(windId, false, transform); } }