35 lines
800 B
C#
35 lines
800 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class FractionManager : MonoBehaviour
|
|
{
|
|
[SerializeField] List<Fraction> fractions;
|
|
[SerializeField] int Totalscore;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
public int over()
|
|
{
|
|
for(int i=0; i < fractions.Count; i++)
|
|
{
|
|
if(!fractions[i].CompletedorNot)
|
|
{
|
|
if (!fractions[i].Erroritem)
|
|
{
|
|
Totalscore -= fractions[i].scorercontinuer;
|
|
continue;
|
|
}
|
|
|
|
//Totalscore -= fractions[i].score;
|
|
}
|
|
}
|
|
Debug.Log("¼Æ·ÖÍê³É");
|
|
return Totalscore;
|
|
}
|
|
}
|