void Awake() { HP = HealthP; kaiguan = false; weapon = PlayerWeaponStorage.TakeWeapon(0); }
void Awake() { huandan = false; weapon = PlayerWeaponStorage.TakeWeapon(0); weapon.transform.SetParent(transform); weapon.transform.localPosition = new Vector3(-0.5f, 0.8f, -3); weapon.transform.localRotation = Quaternion.Euler(0, 0, 90); var ang = weapon.transform.rotation * weapon.transform.rotation; code.text = "ID:" + Random.Range(0, 10) + Random.Range(0, 10) + Random.Range(0, 10) + Random.Range(0, 10) + Random.Range(0, 10) + Random.Range(0, 10) + Random.Range(0, 10); }