Exemplo n.º 1
0
 private void CreateScene8()
 {
     for (var e = 0; e < 5; e++)
     {
         for (var i = e; i < 5; i++)
         {
             var bp = new BowlingPin(this, pinModel, Matrix.CreateRotationX(-MathHelper.PiOver2) * Matrix.CreateRotationY(i * e), new Vector3(e, -14.2f, i));
             Components.Add(bp);
             bp.PhysicsBody.SetDeactivationTime(5.0f);
         }
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     pin        = GameObject.FindObjectOfType <BowlingPin>();
     animator   = GameObject.FindObjectOfType <Animator>();
     pinCounter = GameObject.FindObjectOfType <PinCounter>();
 }