コード例 #1
0
    void SetupRankTargets()
    {
        HudTargetor newTarget = Instantiate(targetorEnemy);

        newTarget.focus = turnee;
        newTarget.transform.SetParent(mainCanvas.transform);
        activeTargets.Add(newTarget);
    }
コード例 #2
0
 void SetupTargets()
 {
     foreach (Battler i in GetValidTargets())
     {
         HudTargetor newTarget = Instantiate(targetorEnemy);
         newTarget.focus = i;
         newTarget.transform.SetParent(mainCanvas.transform);
         activeTargets.Add(newTarget);
     }
 }