Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. UseComponent<Entity, Entity[]> potionUseMethod = new UseComponent<Entity, Entity[]>(HealthPointsComponent.RestoreHealth);
  2.  
  3. potion.GetComponent<UseComponent>().Use(targetList, potion);
  4.  
  5. public static void RestoreHealth(Entity objectThatRestoresHealth, Entity[] targets) { ... };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement