コード例 #1
0
ファイル: Player.cs プロジェクト: lowysole/laser_defender
 // Start is called before the first frame update
 void Start()
 {
     SetUpMoveBoundaries();
     deadSound  = GetComponent <AudioSource>();
     laserSound = laserPrefab.GetComponent <AudioSource>();
     hpManager  = FindObjectOfType <HpImage>();
 }
コード例 #2
0
ファイル: Enemy.cs プロジェクト: sunio00000/StarBringer
 public void HpDisplay()
 {
     HpImage.GetChild(1).GetComponent <Image>().fillAmount = HpRatio();
 }