/// <summary>
    /// Updates this action every interval.
    /// </summary>
    void intervalUpdate()
    {
        if (gameObject.activeInHierarchy)
        {
//		    && (requiredMode == "" || ObjectManager.getMode() == requiredMode)) {
            if (target)
            {
                target.UpdateTarget();
            }

            // action
            if ((!requiresTarget || Target.GetTarget(gameObject) != null) &&
                actions.Count > 0)
            {
                int        idIndex = Random.Range(0, actions.Count);
                BaseAction act     = actions[idIndex];
                if (act != null)
                {
                    act.CheckRun(gameObject, m_data);
                }
            }
        }
        else
        {
            CancelInvoke("intervalUpdate");
        }
    }