public void OnClick() { if (b_state == B_State.AVAILABLE && !click_stint) { click_stint = true; Instantiate(character, new Vector3(home.transform.position.x, 0.5f, home.transform.position.z), Quaternion.identity); b_state = B_State.UNAVAILABLE; } }
//------------------------------ // ボタン使用不可能 //------------------------------ void UnPossible() { unpossible_image.fillAmount += possible_speed * Time.deltaTime; if (unpossible_image.fillAmount == 1) { click_stint = false; b_state = B_State.AVAILABLE; } }