コード例 #1
0
 void FadeOutMusic(string n)
 {
     Fabric.Component component = Fabric.FabricManager.Instance.GetComponentByName(n);
     if (component != null)
     {
         component.FadeOut(0.1f, 0.5f);
     }
 }
コード例 #2
0
 public void FadeOutComponent(string destinationComponent, float targetMS, float curve)
 {
     if (_globalComponentTable.ContainsKey(destinationComponent))
     {
         Fabric.Component component = _globalComponentTable[destinationComponent];
         component.FadeOut(targetMS, curve);
     }
 }