示例#1
0
文件: Health.cs 项目: mlohstroh/LXE
 public void DoPickupAnim()
 {
     GameObject obj = new GameObject("pickup_anim");
     OneShotAnimation one = new OneShotAnimation(obj, "OneShots\\health_pickup");
     one.LoadContent(Scene.Content);
     one.FrameTime = 0.1f;
     obj.AddComponent(one);
     obj.Transform.Position = Transform.Position;
     obj.Transform.Scale = Transform.Scale;
 }
示例#2
0
文件: Enemy.cs 项目: mlohstroh/LXE
 private void SpawnBlood()
 {
     GameObject obj = new GameObject("blood");
     OneShotAnimation one = new OneShotAnimation(obj, "OneShots\\blood");
     one.LoadContent(Scene.Content);
     one.FrameTime = 0.1f;
     obj.AddComponent(one);
     obj.Transform.Position = Transform.Position;
     //obj.Transform.Scale = new Vector2(0.25f);
 }