void Start() { player = GameObject.Find("Player"); Mortion = GetComponent <MortionController>(); spanTime = 3f; currentTime = 0f; // 難易度Easyの場合はHaterを表示しない if (StartGameController.getDifficulty() == 0) { gameObject.SetActive(false); } // 難易度で敵の速度変更 if (StartGameController.getDifficulty() == 2) { spanTime = 1f; } else { spanTime = 2f; } }
// Start is called before the first frame update void Start() { rb2D = GetComponent <Rigidbody2D>(); nowPosition = GetComponent <Transform>().position; Mortion = GetComponent <MortionController>(); }