Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UseComponent<Entity, Entity[]> potionUseMethod = new UseComponent<Entity, Entity[]>(HealthPointsComponent.RestoreHealth);
- potion.GetComponent<UseComponent>().Use(targetList, potion);
- public static void RestoreHealth(Entity objectThatRestoresHealth, Entity[] targets) { ... };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement