using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ceshi : MonoBehaviour {
public int i = 0;
bool isbool = true;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonUp(0))
{
if (isbool)
{
UpCount();
} else
{
RemoveCount();
}
if (i == 2)
{
isbool = false;
} else if (i == 0)
{
isbool = true;
}
}
}
void UpCount()
{
i += 1;
}
void RemoveCount()
{
i -= 1;
}
}