示例#1
0
文件: EnemyDrawer.cs 项目: himapo/ccm
 public void Draw(Enemy enemy)
 {
     RenderParam.Camera = Camera;
     RenderParam.Transform = enemy.Transform.WorldMatrix;
     //RenderParam.Alpha = 0.5f;
     RenderManagerAccessor.Instance.RenderModel(enemy.Model, RenderParam);
 }
示例#2
0
 public void DeleteEnemy(Enemy enemy)
 {
     DeleteList.Add(enemy);
 }
示例#3
0
        public void Update(Enemy enemy)
        {
            Enemy = enemy;
            PrevTransform = new AffineTransform(Transform);

            Update();
        }