コード例 #1
0
 void Start()
 {
     playerStats            = new PlayerStats();
     playerStats.playerName = playerName;
     healthBar = Instantiate(healthBarPrefab, HUD.instance.GetHealthBarParent());
     healthBar.BindToTarget(transform);
     SetHealth(maxHealth);
 }