using DefaultNamespace.ProcessMode; using DefaultNamespace; using MotionFramework; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SocialPlatforms.Impl; public class SubmitBtn : MonoBehaviour { public CompleteOverComponent CompleteOverComponent; public GameObject SubmitPlane; public void PressSubmitBtn() { switch (MotionEngine.GetModule().GetProcessMode()) { case ProcessMode.Practice: CompleteOverComponent.CompleteEvent(MotionEngine.GetModule().CalculateTotalScore()); break; case ProcessMode.Assessment: SubmitPlane.SetActive(true); break; default: throw new ArgumentOutOfRangeException(); } } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }