Beispiel #1
0
 public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _originElasticsearch = new OriginElasticsearch();
     _context             = new MicrobrewitContext();
     _repository          = new OriginRepository();
     _originService       = new OriginService(_originElasticsearch, _repository);
     _controller          = new OriginController(_originService);
 }
 private void OnEnable()
 {
     originController = (OriginController)target;
 }
 public void SetOriginController(OriginController o)
 {
     this.originController = o;
 }
 void OnMySpawn() //Called when I spawn as a remote player.
 {
     //Find the local originController and assign it to myself.
     originController = GameObject.FindGameObjectWithTag("OriginController").GetComponent <OriginController>();
 }