IEnumerator Start() { fc = GetComponentInParent <FlowersController>(); yield return(new WaitForSeconds(esperaInicial)); StartCoroutine(Esperando()); }
private void OnTriggerExit(Collider other) { if (fc = other.GetComponent <FlowersController>()) { fc = null; } }
public GarageControllerTests() { // In our tests we choose to ignore whatever logging is being done. We still need to mock it to avoid // null reference exceptions; loose mocks just handle whatever you throw at them. _loggerMock = new Mock <ILogger <FlowersController> >(MockBehavior.Loose); _SqlFlowerRepoMock = new Mock <IFlowerRepo>(MockBehavior.Strict); _FlowersController = new FlowersController(_SqlFlowerRepoMock.Object, _loggerMock.Object); }
private void OnTriggerStay(Collider other) { if (fc != null) { return; } FlowersController fc2 = other.GetComponent <FlowersController>(); if (fc2 != null) { fc = fc2; } }