|
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
|
+using UnityEngine.PostProcessing;
|
|
|
|
|
|
namespace CM3D2.MultipleMaids.Plugin
|
|
namespace CM3D2.MultipleMaids.Plugin
|
|
{
|
|
{
|
|
@@ -314,37 +315,37 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
xFlg[index1] = false;
|
|
xFlg[index1] = false;
|
|
zFlg[index1] = false;
|
|
zFlg[index1] = false;
|
|
ikMode[index1] = 0;
|
|
ikMode[index1] = 0;
|
|
- Destroy(gMaid[index1]);
|
|
|
|
- Destroy(gMaidC[index1]);
|
|
|
|
- Destroy(gHandL[index1]);
|
|
|
|
- Destroy(gArmL[index1]);
|
|
|
|
- Destroy(gHandR[index1]);
|
|
|
|
- Destroy(gArmR[index1]);
|
|
|
|
- Destroy(gFootL[index1]);
|
|
|
|
- Destroy(gHizaL[index1]);
|
|
|
|
- Destroy(gFootR[index1]);
|
|
|
|
- Destroy(gHizaR[index1]);
|
|
|
|
- Destroy(gClavicleL[index1]);
|
|
|
|
- Destroy(gClavicleR[index1]);
|
|
|
|
- Destroy(gNeck[index1]);
|
|
|
|
- Destroy(gSpine[index1]);
|
|
|
|
- Destroy(gSpine0a[index1]);
|
|
|
|
- Destroy(gSpine1a[index1]);
|
|
|
|
- Destroy(gSpine1[index1]);
|
|
|
|
- Destroy(gPelvis[index1]);
|
|
|
|
- Destroy(gizmoHandL[index1]);
|
|
|
|
- Destroy(gizmoHandR[index1]);
|
|
|
|
- Destroy(gizmoFootL[index1]);
|
|
|
|
- Destroy(gizmoFootR[index1]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(gMaid[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gMaidC[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHandL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gArmL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHandR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gArmR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gFootL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHizaL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gFootR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHizaR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gClavicleL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gClavicleR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gNeck[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine0a[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine1a[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine1[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gPelvis[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoHandL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoHandR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoFootL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoFootR[index1]);
|
|
HandL1[index1] = null;
|
|
HandL1[index1] = null;
|
|
for (int index2 = 0; index2 < 30; ++index2)
|
|
for (int index2 = 0; index2 < 30; ++index2)
|
|
{
|
|
{
|
|
- Destroy(gFinger[index1, index2]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(gFinger[index1, index2]);
|
|
}
|
|
}
|
|
|
|
|
|
for (int index2 = 0; index2 < 12; ++index2)
|
|
for (int index2 = 0; index2 < 12; ++index2)
|
|
{
|
|
{
|
|
- Destroy(gFinger2[index1, index2]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(gFinger2[index1, index2]);
|
|
}
|
|
}
|
|
|
|
|
|
isIK[index1] = isIKAll;
|
|
isIK[index1] = isIKAll;
|
|
@@ -414,7 +415,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
|
|
GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
|
|
for (int index = 0; index < doguBObject.Count; ++index)
|
|
for (int index = 0; index < doguBObject.Count; ++index)
|
|
{
|
|
{
|
|
- Destroy(doguBObject[index]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(doguBObject[index]);
|
|
}
|
|
}
|
|
|
|
|
|
doguBObject.Clear();
|
|
doguBObject.Clear();
|
|
@@ -424,7 +425,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
parCombo.selectedItemIndex = 0;
|
|
parCombo.selectedItemIndex = 0;
|
|
for (int index = 1; index < lightList.Count; ++index)
|
|
for (int index = 1; index < lightList.Count; ++index)
|
|
{
|
|
{
|
|
- Destroy(lightList[index]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(lightList[index]);
|
|
}
|
|
}
|
|
|
|
|
|
lightList = new List<GameObject>
|
|
lightList = new List<GameObject>
|
|
@@ -457,7 +458,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
{
|
|
{
|
|
if (doguObject[index] != null)
|
|
if (doguObject[index] != null)
|
|
{
|
|
{
|
|
- Destroy(doguObject[index]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(doguObject[index]);
|
|
doguObject[index] = null;
|
|
doguObject[index] = null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -817,37 +818,37 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
xFlg[index1] = false;
|
|
xFlg[index1] = false;
|
|
zFlg[index1] = false;
|
|
zFlg[index1] = false;
|
|
ikMode[index1] = 0;
|
|
ikMode[index1] = 0;
|
|
- Destroy(gMaid[index1]);
|
|
|
|
- Destroy(gMaidC[index1]);
|
|
|
|
- Destroy(gHandL[index1]);
|
|
|
|
- Destroy(gArmL[index1]);
|
|
|
|
- Destroy(gHandR[index1]);
|
|
|
|
- Destroy(gArmR[index1]);
|
|
|
|
- Destroy(gFootL[index1]);
|
|
|
|
- Destroy(gHizaL[index1]);
|
|
|
|
- Destroy(gFootR[index1]);
|
|
|
|
- Destroy(gHizaR[index1]);
|
|
|
|
- Destroy(gClavicleL[index1]);
|
|
|
|
- Destroy(gClavicleR[index1]);
|
|
|
|
- Destroy(gNeck[index1]);
|
|
|
|
- Destroy(gSpine[index1]);
|
|
|
|
- Destroy(gSpine0a[index1]);
|
|
|
|
- Destroy(gSpine1a[index1]);
|
|
|
|
- Destroy(gSpine1[index1]);
|
|
|
|
- Destroy(gPelvis[index1]);
|
|
|
|
- Destroy(gizmoHandL[index1]);
|
|
|
|
- Destroy(gizmoHandR[index1]);
|
|
|
|
- Destroy(gizmoFootL[index1]);
|
|
|
|
- Destroy(gizmoFootR[index1]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(gMaid[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gMaidC[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHandL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gArmL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHandR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gArmR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gFootL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHizaL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gFootR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gHizaR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gClavicleL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gClavicleR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gNeck[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine0a[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine1a[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gSpine1[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gPelvis[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoHandL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoHandR[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoFootL[index1]);
|
|
|
|
+ GraphicsUtils.Destroy(gizmoFootR[index1]);
|
|
HandL1[index1] = null;
|
|
HandL1[index1] = null;
|
|
for (int index2 = 0; index2 < 30; ++index2)
|
|
for (int index2 = 0; index2 < 30; ++index2)
|
|
{
|
|
{
|
|
- Destroy(gFinger[index1, index2]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(gFinger[index1, index2]);
|
|
}
|
|
}
|
|
|
|
|
|
for (int index2 = 0; index2 < 12; ++index2)
|
|
for (int index2 = 0; index2 < 12; ++index2)
|
|
{
|
|
{
|
|
- Destroy(gFinger2[index1, index2]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(gFinger2[index1, index2]);
|
|
}
|
|
}
|
|
|
|
|
|
isIK[index1] = isIKAll;
|
|
isIK[index1] = isIKAll;
|
|
@@ -908,8 +909,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
isIdx2 = false;
|
|
isIdx2 = false;
|
|
isIdx3 = false;
|
|
isIdx3 = false;
|
|
isIdx4 = false;
|
|
isIdx4 = false;
|
|
- Destroy(cameraObj);
|
|
|
|
- Destroy(subcamera);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(cameraObj);
|
|
|
|
+ GraphicsUtils.Destroy(subcamera);
|
|
bgObject.SetActive(true);
|
|
bgObject.SetActive(true);
|
|
GameMain.Instance.MainLight.Reset();
|
|
GameMain.Instance.MainLight.Reset();
|
|
GameMain.Instance.MainLight.SetIntensity(0.95f);
|
|
GameMain.Instance.MainLight.SetIntensity(0.95f);
|
|
@@ -932,7 +933,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
|
|
|
for (int index = 0; index < doguBObject.Count; ++index)
|
|
for (int index = 0; index < doguBObject.Count; ++index)
|
|
{
|
|
{
|
|
- Destroy(doguBObject[index]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(doguBObject[index]);
|
|
}
|
|
}
|
|
|
|
|
|
doguBObject.Clear();
|
|
doguBObject.Clear();
|
|
@@ -942,7 +943,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
parCombo.selectedItemIndex = 0;
|
|
parCombo.selectedItemIndex = 0;
|
|
for (int index = 1; index < lightList.Count; ++index)
|
|
for (int index = 1; index < lightList.Count; ++index)
|
|
{
|
|
{
|
|
- Destroy(lightList[index]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(lightList[index]);
|
|
}
|
|
}
|
|
|
|
|
|
lightList = new List<GameObject>
|
|
lightList = new List<GameObject>
|
|
@@ -979,7 +980,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
{
|
|
{
|
|
if (doguObject[index] != null)
|
|
if (doguObject[index] != null)
|
|
{
|
|
{
|
|
- Destroy(doguObject[index]);
|
|
|
|
|
|
+ GraphicsUtils.Destroy(doguObject[index]);
|
|
doguObject[index] = null;
|
|
doguObject[index] = null;
|
|
}
|
|
}
|
|
}
|
|
}
|