private void Use() { if (isWait) { var list = action?.GetListComponents(); _methodWaitForCount = list.Count; if (list.IsAlmostSpecificCount()) { FarUsableObj(_colliderObj); _isEnable = false; foreach (var element in list) { WaitManager.Wait(element, OnFinishWait); } action?.Invoke(_colliderObj); } else { LogManager.LogWarning("There isn't one action with IWaitAction interface"); } } else { action?.Invoke(_colliderObj); } }
// Start is called before the first frame update void Start() { WaitManager.Wait(typeof(Waitxamples1), Wait); WaitManager.Wait(typeof(Waitxamples2), Wait); Invoke("Caller", 2f); }
// Start is called before the first frame update void Start() { WaitManager.Wait <float>(typeof(Call), Test); }
public void WhenTravellerSelectFinishButton() { CurrentPage.As <CreatePage>().SelectFinishButton(); WaitManager.Wait(10000); }