public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper)
 {
     foreach (GameEntity child in _spawnerMissionHelper.SpawnedEntity.GetChildren())
     {
         if (child.GetFirstScriptOfType <Trebuchet>() != null)
         {
             child.GetFirstScriptOfType <Trebuchet>().AddOnDeployTag    = this.AddOnDeployTag;
             child.GetFirstScriptOfType <Trebuchet>().RemoveOnDeployTag = this.RemoveOnDeployTag;
             break;
         }
     }
 }
        private void SyncMatrixFrames()
        {
            List <GameEntity> children = new List <GameEntity>();

            this.SpawnedEntity.GetChildrenRecursive(ref children);
            foreach (GameEntity child in children)
            {
                if (SpawnerEntityMissionHelper.HasField((object)this._spawner, child.Name))
                {
                    MatrixFrame fieldValue = (MatrixFrame)SpawnerEntityMissionHelper.GetFieldValue((object)this._spawner, child.Name);
                    child.SetFrame(ref fieldValue);
                }
                if (SpawnerEntityMissionHelper.HasField((object)this._spawner, child.Name + "_enabled") && !(bool)SpawnerEntityMissionHelper.GetFieldValue((object)this._spawner, child.Name + "_enabled"))
                {
                    this.RemoveChildEntity(child);
                }
            }
        }