Пример #1
0
 public CoconutOrbit(Planet planet, Tree tree, float angle, float height)
     : base(planet.PlayerNumber)
 {
     this.planet = planet;
     this.tree = tree;
     this.height = height; //CoconutOrbitHeight;
     this.DrawOrder = 3;
     this.CollisionEnabled = true;
     this.PositionOnPlanet = new Vector2(angle, height);
     this.Position = planet.GetPositionInPlanetOrbit(angle, height);
     this.CollisionRadius = 16.0f;
     this.tree.CoconutCount++;
 }