/// <inheritdoc /> public override void OnSelected() { base.OnSelected(); if (!Configured || AnimatorComponent.IsPlaying("toggle")) { return; } AnimatorComponent.Play("highlight"); }
protected override void OnUpdate() { base.OnUpdate(); timer += Time.DeltaTime; if (timer > 10) { if (anim.IsPlaying("Anim")) { anim.Play("Anim2"); } else { anim.Play("Anim"); } timer = 0f; } }