Beispiel #1
0
        public uint CreateMonsterExitField(uint ownerID, Vector3 initPos, Vector3 initDir, bool forDefendMode = false)
        {
            MonoTriggerField entity = this.CreateDynamicObjectEntityInstance <MonoTriggerField>(ownerID, "StageMonsterExitField", initPos, initDir, this.GetNextSyncedDynamicObjectRuntimeID());

            entity.SetCollisionMask(((int)1) << InLevelData.MONSTER_LAYER);
            MonsterExitFieldActor triggerFieldActor = Singleton <EventManager> .Instance.CreateActor <MonsterExitFieldActor>(entity);

            Singleton <EffectManager> .Instance.TriggerEntityEffectPattern("Prop_LevelMonsterGoal", entity, true);

            if (forDefendMode)
            {
                Singleton <LevelManager> .Instance.levelActor.AddTriggerFieldInDefendMode(triggerFieldActor);
            }
            return(triggerFieldActor.runtimeID);
        }
 public LDEvtWaitMonsterEnterField(double runtimeID)
 {
     this._fieldActor = Singleton <EventManager> .Instance.GetActor <MonsterExitFieldActor>((uint)runtimeID);
 }