Slide 48
Slide 48 text
4FUVQ5FBSEPXO
GameObject bombCandidate;
[MSetup] // MiyamasuͷsetupΞτϦϏϡʔτ
public IEnumerator Setup()
{
var loadSceneOp = SceneManager.LoadSceneAsync("MyScene", LSM.Additive);
while (!loadSceneOp.isDone)
{
yield return null;
}
// bombCandidateʹΠϯελϯεΛηοτ
bombCandidate = GameObject.Find("Bomb");
IsNotNull(bombCandidate, “ര͕ɹͳ͍ʂ”);
}
[MTeardown] // MiyamasuͷteardownΞτϦϏϡʔτ
public IEnumerator Treardown()
{
var unloadSceneOp = SceneManager.UnloadSceneAsync("MyScene");
while (!unloadSceneOp.isDone)
{
yield return null;
}