public Man(Vector2f position) { MoveSpeed = 80f; AnimatoinsHandler = new FourDirectionsMoveAnimatoinsHandler(ResourceLoader.ManMoveAnimationsSprites, MoveDirection); foreach (var obj in AnimatoinsHandler.Collection) { var animation = obj as Animation; animation.Speed = 7; } Position = position; }
public override void DeleteNestedObjects() { AnimatoinsHandler.DeleteNestedObjects(); AnimatoinsHandler = null; }
public Passerby(Vector2f position) { MoveSpeed = 200f; AnimatoinsHandler = new FourDirectionsMoveAnimatoinsHandler(ResourceLoader.PasserbyMoveAnimationsSprites, MoveDirection); Position = position; }