Esempio n. 1
0
        /// <inheritdoc />
        public override void OnSelected()
        {
            base.OnSelected();
            if (!Configured || AnimatorComponent.IsPlaying("toggle"))
            {
                return;
            }

            AnimatorComponent.Play("highlight");
        }
Esempio n. 2
0
        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;
            }
        }