コード例 #1
0
ファイル: GameLevel.cs プロジェクト: KatekovAnton/Game
 public void AddEngineObject(Engine.Logic.PivotObject __object, Matrix __position, Engine.Logic.PivotObject __parentObject = null)
 {
     LevelObject loNew = __object as LevelObject;
     bool added = false;
     if (loNew != null)
     {
         AddLevelObject(loNew, __parentObject);
     }
     if (!added)
     {
         ParticleObject ponew = __object as ParticleObject;
         if (ponew != null)
         {
             AddParticleObject(ponew);
             added = true;
         }
     }
     __object.SetGlobalPose(__position, true, __parentObject);
 }