예제 #1
0
        public virtual void Merge(TriggerList triggers)
        {
            GameTrigger iniTrigger = null;

            foreach (GameTrigger gt in triggers)
            {
                if (gt.GetKey() == 1)
                {
                    iniTrigger = gt;
                    break;
                }
            }
            if (iniTrigger == null)
            {
                iniTrigger = new GameTrigger(1);
                triggers.AddTrigger(iniTrigger);
            }
            iniTrigger.AddAction(new UseGameComponent.AddComponentParaAction(this, this.name, args));
        }