Пример #1
0
 public virtual void Update()
 {
     if (redShadowType == RedShadowType.Expanding)
     {
         RedShadowRadius += 32;
         if (RedShadowRadius * 2 > 2500)
         {
             redShadowType = RedShadowType.Visible;
         }
     }
     else if (redShadowType == RedShadowType.Retracting)
     {
         RedShadowRadius -= 32;
         if (RedShadowRadius <= 0)
         {
             redShadowType = RedShadowType.Invisible;
         }
     }
     foreach (DisplayObjectContainer doc in Childs)
     {
         doc.Update();
     }
 }
Пример #2
0
 public void EndRedShadow()
 {
     redShadowType = RedShadowType.Retracting;
 }
Пример #3
0
 public void StartRedShadow(Vector2 position)
 {
     redShadowType     = RedShadowType.Expanding;
     RedShadowPosition = position;
     RedShadowRadius   = 0;
 }