Esempio n. 1
0
 private ScoreMessage PushWorld(ScoreFlashFollow3D follow3D, object message, Color? color, GUIStyle style, GUIStyle styleHighDensity)
 {
     if (!follow3D.keepStatic) {
         return PushLocal(message, color, style, styleHighDensity, follow3D.GetInstanceID(), follow3D);
     } else {
         Vector3 worldPosition = follow3D.GetLocation().CurrentTranslatedPosition;
         Vector2 screenOffset = follow3D.GetLocation().CurrentScreenOffset;
         ScoreMessage msg = PushWorld(worldPosition, screenOffset, message, color, style, styleHighDensity, follow3D.GetInstanceID());
         return msg;
     }
 }
Esempio n. 2
0
 /// <summary>
 ///     Used to follow a 3D object. Set by ScoreFlash when a message is
 ///     pushed.
 /// </summary>
 /// <param name="follow3D">a helper object used to follow a game object</param>
 internal void SetScoreFlashFollow3D(ScoreFlashFollow3D follow3D)
 {
     innerAnchor = follow3D.innerAnchor;
     followLocation = follow3D.GetLocation();
 }