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; }
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); }