public void init() { anim = Substitute.For <Animator>(); actionScheduler = Substitute.For <ActionScheduler>(); stat = Substitute.For <IBaseStats>(); stat.GetStat(Stat.Health).Returns(100); behaviour = new HealthControllerBehaviour(0f, anim, actionScheduler, null, null, stat); behaviour.init(); //behaviour.healthPoints.value.Returns(100); }
private float GetInitialHealth() { return(_stat.GetStat(Stat.Health)); }