public void BeforeEachTest() { goal = new GameObject().AddComponent <Goal>(); scoreEvent = Substitute.For <IScoreEvent>(); ball = new GameObject().AddComponent <BoxCollider2D>(); goal.Construct(Players.ONE, scoreEvent); }
public void Construct(Players scoresTo, IScoreEvent scoreEvent) { this.scoresTo = scoresTo; this._scoreEvent = scoreEvent; }