コード例 #1
0
ファイル: scoreLine.cs プロジェクト: lfd547/LudumDare_45
 // Start is called before the first frame update
 void Start()
 {
     hs = PlayerStats.stats.GetMaxInk();
     HSMarker.position = Vector2.right * hs;
     HSText.text       = hs.ToString("0.0");
     pencil.SetPosition(1, Vector2.right * hs);
     for (int i = 0; i < 8; i++)
     {
         GameObject g = GameObject.Instantiate(markerPrefab, Vector3.right * i * 5, Quaternion.identity, markerParent);
         marker     m = g.GetComponent <marker>();
         m.SetPos(i * 5, i * 5 >= hs);
         markers.Add(m);
     }
 }