Beispiel #1
0
        void Blink(BlinkMsg msg)
        {
            ActorObject act = GetComponent <ActorObject>();

            if (act != null)
            {
                act.Blink(msg.darkTime, msg.fadeTime, msg.disable);
            }
            else
            {
                Debug.LogError(string.Format("{0}: Tried to blink but object is not an actor.", name));
            }
        }