0908名前は開発中のものです。
2018/02/06(火) 15:06:26.11ID:bXBlbd3vスクリプトを作成しているのですが、うまく動かないのでおかしいところを教えて下さい
別に作成したテキストを表示するスクリプトは動いているのでvoid update()以降がおかしいのだと思います
開発環境
win10 unity5 5.6.3p1
void Start()
{
buttom1 = GameObject.FindWithTag("B1");
buttom2 = GameObject.FindWithTag("B2");
buttom1.gameObject.SetActive(false);
buttom2.gameObject.SetActive(false);
}
public void Update()
{
if (playerHealth.currentHealth <= 0)
{
buttom1.gameObject.SetActive(true);
buttom2.gameObject.SetActive(true);
}
}
}