You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
653 B
38 lines
653 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class twoAnswer : MonoBehaviour
|
|
{
|
|
private int a;
|
|
private int b;
|
|
public PanDuan UsingPanDuan;
|
|
void Start()
|
|
{
|
|
a = 0;
|
|
b = 0;
|
|
}
|
|
public void ButtonUp()
|
|
{
|
|
if (this.b == 0)
|
|
{
|
|
this.a = 1;
|
|
}
|
|
else if(this.b == 1)
|
|
{
|
|
UsingPanDuan.SetOne(true);
|
|
}
|
|
}
|
|
public void ButtonDown()
|
|
{
|
|
if (this.a == 0)
|
|
{
|
|
this.b = 1;
|
|
}
|
|
else if (this.a == 1)
|
|
{
|
|
UsingPanDuan.SetOne(false);
|
|
}
|
|
}
|
|
}
|