void Start() { hp = maxHP; HP.value = 1f; scr = tama.GetComponent <tamas>(); player = GameObject.FindWithTag("Player"); kill = GameObject.FindWithTag("GameController").GetComponent <enemypop>(); }
// Start is called before the first frame update void Start() { //HPの初期値を設定 hp = maxHP; //比率計算用 HP.value = 1f; //プレイヤーの弾に設定されているスクリプト参照用 scr = tama.GetComponent<tamas>(); //ゲーム開始時の挙動 StartCoroutine(St()); }
void Start() { hp = maxHP; HP.value = 1f; scr = tama.GetComponent <tamas>(); }