void ClearData() { m_Title_h1.text = "Ну, Постривай !!!"; GameData.HP = 4; GameData.SCORE = 0; GameData.SPEED = 2f; GameData.LINER_DRAG = 10f; m_GlobalTimer = 0f; ClearTimer(); m_hp.Init(); }
/// ///// 仮 ///////////// void Start() { Camera.main.GetComponent <CameraController>().MoveTo(new Vector3(0f, 9f, 1.62f), 0.075f); Camera.main.GetComponent <CameraController>().RotateTo(new Vector3(30f, 0f, 0f), 0.055f); playerSkill = new List <PlayerSkillManager>(); foreach (var skill in Players.GetComponentsInChildren <PlayerSkillManager>()) { playerSkill.Add(skill); } PlayerHP.Init(500f); foreach (var enemy in CurrentStageData.Data.enemyList[0].List) { enemyManager.SpawnEnemy(enemy); } }
void Awake() { hp.Init(MaxHP); }