protected override void OnShow(object userData) { base.OnShow(userData); m_data = (fireData)userData; CachedTransform.localScale = new Vector2(0.9f, 0.9f); for (int i = 0; i < 4; i++) { HIT.Add(new RaycastHit2D()); } }
public static void Showfire(this EntityComponent entityComponent, fireData data) { entityComponent.ShowEntity(typeof(fire), "fire", 1, data); }