예제 #1
0
파일: CaughtFruit.cs 프로젝트: shadiwolf/e
        public override void CopyStateFrom(IHasCatchObjectState objectState)
        {
            base.CopyStateFrom(objectState);

            var fruitState = (IHasFruitState)objectState;

            VisualRepresentation.Value = fruitState.VisualRepresentation.Value;
        }
예제 #2
0
파일: CaughtObject.cs 프로젝트: shadiwolf/e
 /// <summary>
 /// Copies the hit object visual state from another <see cref="IHasCatchObjectState"/> object.
 /// </summary>
 public virtual void CopyStateFrom(IHasCatchObjectState objectState)
 {
     HitObject          = objectState.HitObject;
     Scale              = Vector2.Divide(objectState.DisplaySize, Size);
     Rotation           = objectState.DisplayRotation;
     AccentColour.Value = objectState.AccentColour.Value;
     HyperDash.Value    = objectState.HyperDash.Value;
 }