コード例 #1
0
 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;
                 }
             }
         }
     }
 }
コード例 #2
0
 public void SetUp()
 {
     _mockResidentUseCase           = new Mock <IResidentUseCase>();
     _mockCreateRequestAuditUseCase = new Mock <ICreateRequestAuditUseCase>();
     _residentController            = new ResidentController(_mockResidentUseCase.Object, _mockCreateRequestAuditUseCase.Object);
 }
コード例 #3
0
 public ResidentController_Post_Test() : base()
 {
     _controller = new ResidentController(_service, _logger);
 }