public void Show() { if (transition != DemoTransition.Showing) { transition = DemoTransition.Showing; startTime = Time.time; } }
public void Hide() { if (transition != DemoTransition.Hiding) { transition = DemoTransition.Hiding; startTime = Time.time; } }