// Update is called once per frame void Update() { DamagePhysic.Update(); DamageMagic.Update(); Heal.Update(); Mana.Update(); Message.Update(); }
public void Clear() { DamagePhysic.Clear(); DamageMagic.Clear(); Heal.Clear(); Mana.Clear(); Message.Clear(); }
// Use this for initialization void Start() { DamagePhysic.Init(); DamageMagic.Init(); Heal.Init(); Mana.Init(); Message.Init(); }
public void PushDamage(bool is_physic, ICreature creature, int damage, eTextPushType push_type, float add_position = 0f) { if (creature.IsShowText == false) { return; } Transform attach_transform = creature.Character.transform; float scale = attach_transform.GetComponent <Character>().Creature.Scale; if (is_physic) { DamagePhysic.Push(attach_transform, creature.TextOffset, GetNumberText(damage), push_type, scale, add_position); } else { DamageMagic.Push(attach_transform, creature.TextOffset, GetNumberText(damage), push_type, scale, add_position); } }