当前位置: 首页>>代码示例>>C#>>正文


C# IGame.GetNodeList方法代码示例

本文整理汇总了C#中IGame.GetNodeList方法的典型用法代码示例。如果您正苦于以下问题:C# IGame.GetNodeList方法的具体用法?C# IGame.GetNodeList怎么用?C# IGame.GetNodeList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IGame的用法示例。


在下文中一共展示了IGame.GetNodeList方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddToGame

 public override void AddToGame(IGame game)
 {
     games = game.GetNodeList<GameNode>();
     spaceships = game.GetNodeList<SpaceshipCollisionNode>();
     asteroids = game.GetNodeList<AsteroidCollisionNode>();
     bullets = game.GetNodeList<BulletCollisionNode>();
 }
开发者ID:MarcelMalik,项目名称:UnityAshteroids,代码行数:7,代码来源:CollisionSystem.cs

示例2: AddToGame

 public override void AddToGame(IGame game)
 {
     games = game.GetNodeList<GameNode>();
     players = game.GetNodeList<PlayerCollisionNode>();
     asteroids = game.GetNodeList<AsteroidCollisionNode>();
     bullets = game.GetNodeList<BulletCollisionNode>();
 }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:7,代码来源:CollisionSystem.cs

示例3: AddToGame

        public override void AddToGame(IGame game)
        {
            this.engine = game;

            waitNodes = game.GetNodeList<WaitForStartNode>();
            gameNodes = game.GetNodeList<GameNode>();
            asteroids = game.GetNodeList<AsteroidCollisionNode>();
        }
开发者ID:urgamedev,项目名称:UnityAshteroids,代码行数:8,代码来源:WaitForStartSystem.cs

示例4: AddToGame

 public override void AddToGame(IGame game)
 {
     this.engine = game;
     networkNodes = game.GetNodeList<NetworkNode> ();
     ///waitNodes = game.GetNodeList<WaitForStartNode>();
     gameNodes = game.GetNodeList<GameNode>();
     //platformNodes = game.GetNodeList<PlatformNode> ();
     //asteroids = game.GetNodeList<AsteroidCollisionNode>();
 }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:9,代码来源:NetworkSystem.cs

示例5: AddToGame

        public override void AddToGame(IGame game)
        {
            this.engine = game;

            gameNodes = game.GetNodeList<GameNode>();
            player = game.GetNodeList<PlayerNode> ();
            networkNodes = game.GetNodeList<NetworkNode> ();
            platformNodes = game.GetNodeList<PlatformNode> ();
        }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:9,代码来源:AIMovementSystem.cs

示例6: AddToGame

        public override void AddToGame(IGame game)
        {
            this.engine = game;

            gameNodes = game.GetNodeList<GameNode>();
            players= game.GetNodeList<PlayerNode> ();
            networkNodes = game.GetNodeList<NetworkNode> ();
            platformNodes = game.GetNodeList<PlatformNode> ();
            asteroids = game.GetNodeList<AsteroidCollisionNode> ();
        }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:10,代码来源:GameManagerSystem.cs

示例7: AddToGame

        /**
         * Called just after the system is added to the game, before any calls to the update method.
         * Override this method to add your own functionality.
         *
         * @param game The game the system was added to.
         */
        public override void AddToGame(IGame game)
        {
            nodeList = game.GetNodeList(nodeClass);

            if(NodeAdded != null)
            {
                for(Node node = nodeList.Head; node != null; node = node.Next)
                {
                    NodeAdded(node);
                }
            }
        }
开发者ID:Wikzo,项目名称:Hagenberg_2015,代码行数:18,代码来源:ListIteratingSystem.cs

示例8: AddToGame

 public override void AddToGame(IGame game)
 {
     nodes = game.GetNodeList<GunControlNode>();
 }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:4,代码来源:GunControlSystem.cs

示例9: AddToGame

 public override void AddToGame(IGame game)
 {
     nodes = game.GetNodeList<BulletAgeNode>();
 }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:4,代码来源:AgeSystem.cs

示例10: AddToGame

 public override void AddToGame(IGame game)
 {
     nodes = game.GetNodeList<MotionControlsNode>();
     gameNodes = game.GetNodeList<GameNode> ();
 }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:5,代码来源:MotionControlSystem.cs

示例11: AddToGame

 public override void AddToGame(IGame game)
 {
     nodes = game.GetNodeList<DeathThroesNode>();
     nodes.NodeAdded += OnNodeAdded;
 }
开发者ID:kinlam,项目名称:RUN-SHOOT,代码行数:5,代码来源:DeathThroesSystem.cs

示例12: AddToGame

 public override void AddToGame(IGame game)
 {
     nodes = game.GetNodeList<HudNode>();
 }
开发者ID:urgamedev,项目名称:UnityAshteroids,代码行数:4,代码来源:HudSystem.cs


注:本文中的IGame.GetNodeList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。