Esempio n. 1
0
        internal void ColliderDamage_LineShape(int layer, long remainTime, long damageInterval, Vector3 startPos, Vector3 endPos, float radius, params StateBuff[] stateBuffs)
        {
            ColliderDamageCommand cmd = CommandManager.Instance.CreateCommand("colliderdamage") as ColliderDamageCommand;

            cmd.Load(layer, remainTime, damageInterval, startPos, endPos, radius, stateBuffs);
            cmd.Execute(m_Instance, m_DeltaTime);
        }
Esempio n. 2
0
        internal void ColliderDamage_BoxShape(int layer, long remainTime, long damageInterval, Vector3 offset, Vector3 size, params StateBuff[] stateBuffs)
        {
            ColliderDamageCommand cmd = CommandManager.Instance.CreateCommand("colliderdamage") as ColliderDamageCommand;

            cmd.Load(layer, remainTime, damageInterval, offset, size, stateBuffs);
            cmd.Execute(m_Instance, m_DeltaTime);
        }