Tree("Root") {
	Composite (Sequence) {
		RunTree("Initialize")
		RunTree("Sequence")
	}
}

Tree("Initialize") {
	Composite (Sequence) {
		BTC.Hide("CanvasGroup.Canvas")
		BTC.Hide("UiText.Canvas")
		BTC.Hide("NamedImage.Canvas")
		BTC.Hide("TextMeshPro.Canvas")
		BTC.Hide("NamedImage/VideoPlayer.Canvas.SampleVideo640x360")
		BTC.Hide("Animator/Renderer.AnimCtrl_Cube")
		BTC.Hide("CanvasGroup/NamedEventTrigger.Canvas")
	}
}

Tree("Sequence") {
	Composite (Sequence) {
		BTC.FadeIn("CanvasGroup.Canvas")
		BTC.Run("StudioEventEmitter.Pistol")

		Composite (Marathon) {
			Composite (Sequence) {
				BTC.Show("VideoPlayer.SampleVideo640x360_Direct")
				BTC.Show("VideoPlayer.SampleVideo640x360_Direct")
				BTC.Run("VideoPlayer.SampleVideo640x360_Direct")
				BTC.Hide("VideoPlayer.SampleVideo640x360_Direct")
			}
			Composite (Sequence) {
				BTC.FadeIn("NamedImage/VideoPlayer.Canvas.SampleVideo640x360")
				BTC.Run("NamedImage/VideoPlayer.Canvas.SampleVideo640x360")
				BTC.FadeOut("NamedImage/VideoPlayer.Canvas.SampleVideo640x360")
			}
		}

		Composite (Marathon) {
			Composite (Sequence) {
				BTC.Wait(0)
				BTC.FadeIn("UiText.Canvas")
				BTC.FadeOut("UiText.Canvas")
			}
			Composite (Sequence) {
				BTC.Wait(1)
				BTC.FadeIn("NamedImage.Canvas")
				BTC.FadeOut("NamedImage.Canvas")
			}
			Composite (Sequence) {
				BTC.Wait(2)
				BTC.FadeIn("TextMeshPro.Canvas")
				BTC.FadeOut("TextMeshPro.Canvas")
			}
			Composite (Sequence) {
				BTC.Wait(3)
				BTC.FadeIn("CanvasGroup/NamedEventTrigger.Canvas")
				BTC.Run("CanvasGroup/NamedEventTrigger.Canvas")
				BTC.FadeOut("CanvasGroup/NamedEventTrigger.Canvas")
			}
		}
		BTC.FadeOut("CanvasGroup.Canvas")

		BTC.Hide("Collider/Terrain.NewTerrain")
		BTC.Run("AudioSource.sagitauriussawping")
		BTC.Show("Collider/Terrain.NewTerrain")
		Composite (Race) {
			BTC.Run("Rigidbody.Sphere")
			BTC.Wait(5)
		}
		BTC.Run("AudioSource.sagitauriussawping")
		BTC.Hide("Collider/Terrain.NewTerrain")

		BTC.FadeIn("Animator/Renderer.AnimCtrl_Cube")
		BTC.Set("Animator/Renderer.AnimCtrl_Cube", "Trigger", "Enter1")
		BTC.Set("Animator/Renderer.AnimCtrl_Cube", "Trigger", "Enter2")
		BTC.Set("Animator/Renderer.AnimCtrl_Cube", "Trigger", "Enter3")
		BTC.Set("Animator/Renderer.AnimCtrl_Cube", "Trigger", "Reset")
		BTC.FadeOut("Animator/Renderer.AnimCtrl_Cube")

        BTC.RestartBT()
	}
}