43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
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<DataConfigManager>().GetProcessMode())
|
|
{
|
|
case ProcessMode.Practice:
|
|
CompleteOverComponent.CompleteEvent(MotionEngine.GetModule<AnimationProcessManager>().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()
|
|
{
|
|
|
|
}
|
|
}
|