public GroundController(CricketContext context,
                         UserManager <ApplicationUser> userManager, IGround grounds, IHostingEnvironment hosting,
                         IMapper mapper)
 {
     _context     = context;
     _userManager = userManager;
     _mapper      = mapper;
     _grounds     = grounds;
     _hosting     = hosting;
 }
 // Use this for initialization
 void Start()
 {
     ground = new TransformBasedPlane(groundTransform);
     if (camera == null)
     {
         camera = Camera.main;
     }
     foci.Add(new MouseFocus(camera, true, 1f));
     foreach (Rigidbody rb in players)
     {
         foci.Add(new RigidbodyFocus(rb, .2f, true, 1f, 2f));
     }
 }
Example #3
0
 public Cell AddGround(IGround ground)
 {
     return(Ground != null
         ? this
         : new Cell(Sky, Creature, ground));
 }
Example #4
0
 public Cell(ISky sky, ICreature creature, IGround ground)
 {
     Sky      = sky;
     Creature = creature;
     Ground   = ground;
 }