コード例 #1
0
 public void Reset()
 {
     state = ElementState.Idle;
     InAnimation?.Reset();
     OutAnimation?.Reset();
     InAnimation?.Apply(ref props);
     OutAnimation?.Apply(ref props);
     SaveProperties();
 }
コード例 #2
0
 public void Hide()
 {
     state = ElementState.Hiding;
     InAnimation?.Reset();
     SaveProperties();
     OutAnimation?.Play(true);
     OutAnimation?.Apply(ref props);
     if (OutAnimation != null)
     {
         OutAnimation.OnFinished += ZeroProperties;
     }
 }