예제 #1
0
 public override void OnAttached(AbstractEntity entity)
 {
     (entity as Entity).OnUpdate += OnUpdate;
     entity.AddMatrixAttribute("view", Matrix.Identity);
     entity.AddMatrixAttribute("projection", Matrix.Identity);
 }