// Use this for initialization void Start() { Time.fixedDeltaTime = 0.5f; Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); currenttime = Time.time; printcount = 0; loop = -1; }
private static void MainSafe(Arguments arguments) { var targetDirectoryPath = arguments.TargetDirectoryPath; IImmutableDictionary <AssemblyShortName, AssemblyDetails> mainAssemblies; IImmutableDictionary <AssemblyShortName, AssemblyDetails> usedRoslynAssemblies; IImmutableDictionary <AssemblyShortName, string> roslynAssemblyPaths; IImmutableDictionary <AssemblyShortName, IImmutableSet <PackageInfo> > roslynPackageMap; IImmutableDictionary <AssemblyShortName, AssemblyDetails> othersReferencedByRoslyn; Step1.CollectMainAssemblies(arguments.SourceProjectAssemblyDirectoryPath, out mainAssemblies); Step2.CollectRoslynAssemblies(arguments.RoslynBinariesDirectoryPath, ref mainAssemblies, out usedRoslynAssemblies, out roslynAssemblyPaths); Step3.CollectRoslynPackageReferences(arguments.RoslynBinariesDirectoryPath, out roslynPackageMap); Step4.CollectRoslynReferences(ref usedRoslynAssemblies, roslynAssemblyPaths, ref mainAssemblies, roslynPackageMap, out othersReferencedByRoslyn); Step5.CleanTargetDirectory(arguments.TargetDirectoryPath); Step6.CopyAssembliesReferencedByRoslyn(othersReferencedByRoslyn, targetDirectoryPath); Step7.CopyRoslynAssemblies(usedRoslynAssemblies, targetDirectoryPath); Step8.RewriteAndCopyMainAssemblies(mainAssemblies, targetDirectoryPath, usedRoslynAssemblies); Step9.UpdateBindingRedirects(arguments.TargetApplicationConfigurationPath, othersReferencedByRoslyn.Values); }
void FixedUpdate() { if (loop >= 0 && loop < 1) { if (printcount % 11 == 0) { Step1.SetActive(true); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 1) { Step1.SetActive(false); Step2.SetActive(true); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 2) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(true); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 3) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(true); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 4) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(true); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 5) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(true); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 6) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(true); Step8.SetActive(false); Step9.SetActive(false); } else if (printcount % 11 == 7) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(true); Step9.SetActive(false); } else if (printcount % 11 == 8) { Step1.SetActive(false); Step2.SetActive(false); Step3.SetActive(false); Step4.SetActive(false); Step5.SetActive(false); Step6.SetActive(false); Step7.SetActive(false); Step8.SetActive(false); Step9.SetActive(true); loop++; } printcount++; } if (loop == 1) { SceneManager.LoadScene("Game3", LoadSceneMode.Single); } }