Skip to content

Commit

Permalink
Update COM3D2.PhotoModeAutoLoop.Plugin.cs
Browse files Browse the repository at this point in the history
스튜디오 모드에서는 기본적으로 작동하고
그외에는 작동 안하는 식으로 변경
단축키로 키고 끌수 있음
  • Loading branch information
lilly1987 authored Aug 26, 2018
1 parent 3c7fb26 commit aaf7f4d
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions COM3D2.PhotoModeAutoLoop.Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace COM3D2.PhotoModeAutLoop.Plugin
public class PhotoModeAutoLoop: PluginBase
{
//private bool isStudio = false;
private int isLoop = 2;
private int isLoop = 0;
private float deltaTotal = 0;

public void Awake()
Expand Down Expand Up @@ -66,19 +66,19 @@ public void Update()
switch (isLoop)
{
case 1:
Console.WriteLine("Case 0 Once");
Console.WriteLine("Case Once");
break;
case 2:
Console.WriteLine("Case 1 Loop");
Console.WriteLine("Case Loop");
break;
case 3:
Console.WriteLine("Case 2 PingPong");
Console.WriteLine("Case PingPong");
break;
case 4:
Console.WriteLine("Case 3 Default");
Console.WriteLine("Case Default");
break;
case 5:
Console.WriteLine("Case 4 ClampForever");
Console.WriteLine("Case ClampForever");
break;
default:
Console.WriteLine("Default case");
Expand Down Expand Up @@ -144,24 +144,26 @@ public void Update()

private void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode)
{
//try
//{
// if (scene.name == "ScenePhotoMode")
// //if (scene.buildIndex == 27)
// {
// //スタジオモード
// isStudio = true;
// }
// else
// {
// //スタジオモード以外
// isStudio = false;
// }
//}
//catch (Exception e)
//{
// Debug.LogError(e.ToString());
//}
try
{
if (scene.name == "ScenePhotoMode")
//if (scene.buildIndex == 27)
{
//スタジオモード
//isStudio = true;
isLoop = 2;
}
else
{
//スタジオモード以外
//isStudio = false;
isLoop = 0;
}
}
catch (Exception e)
{
Debug.LogError(e.ToString());
}
}

public void OnGUI()
Expand Down

0 comments on commit aaf7f4d

Please sign in to comment.