public void OnTriggerStay2D(Collider2D other) { if (other.gameObject.GetComponent <ResidentController>() != null) { character = other.gameObject.GetComponent <ResidentController>(); if (character.destStairs == true) { if (character.stairs[character.stairIndex] == this) { //following if statement resets Lerptime in Character Controller if (character.atDest == true) { character.usingStairs = true; } } } } }
public void SetUp() { _mockResidentUseCase = new Mock <IResidentUseCase>(); _mockCreateRequestAuditUseCase = new Mock <ICreateRequestAuditUseCase>(); _residentController = new ResidentController(_mockResidentUseCase.Object, _mockCreateRequestAuditUseCase.Object); }
public ResidentController_Post_Test() : base() { _controller = new ResidentController(_service, _logger); }