StaticMethodInstruction
Introduction
Creating a StaticMethodInstruction
using System.Reflection;
using FlatRedBall.Instructions;MethodInfo methodInfo = typeof(SpriteManager).GetMethod("AddSprite", new Type[]{ typeof(string)});
StaticMethodInstruction addingSprite = new StaticMethodInstruction(
methodInfo, new object[]{"redball.bmp"}, TimeManager.CurrentTime + 2);
InstructionManager.Instructions.Add(addingSprite);
Last updated
Was this helpful?