예제 #1
0
 // Swaps the associatedDecal with a different one
 // Does nothing if associatedDecal is null
 private void SwapDecal(string name)
 {
     if (associatedDecal != null)
     {
         associatedDecal.RemoveSelf();
         associatedDecal = new Decal(name, associatedDecal.Position, associatedDecal.Scale, associatedDecal.Depth);
         base.Scene.Add(associatedDecal);
     }
 }