Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     DamagePhysic.Update();
     DamageMagic.Update();
     Heal.Update();
     Mana.Update();
     Message.Update();
 }
Exemple #2
0
 public void Clear()
 {
     DamagePhysic.Clear();
     DamageMagic.Clear();
     Heal.Clear();
     Mana.Clear();
     Message.Clear();
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     DamagePhysic.Init();
     DamageMagic.Init();
     Heal.Init();
     Mana.Init();
     Message.Init();
 }
Exemple #4
0
    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);
        }
    }