Ejemplo n.º 1
0
        /// <summary>
        /// Registers the alert and starts counting frames.
        /// </summary>
        public void Start(Vector3 position, float range)
        {
            if (!IsGenerated)
            {
                IsGenerated = true;
                ID          = Alerts.Register(position, range);
            }

            Frames = 2;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Registers the alert and starts counting frames.
        /// </summary>
        public void Start(Vector3 position, float range, bool isHostile, Actor actor, bool isDirect)
        {
            if (!IsGenerated)
            {
                IsGenerated = true;
                ID          = Alerts.Register(position, range, isHostile, actor, isDirect);
            }

            Frames = 2;
        }