コード例 #1
0
    public static AbilityPopup Create(Vector3 position, string ability)
    {
        Transform    abilityPopupTransform = Instantiate(GameAssets.i.pfAbilityPopup, position, Quaternion.identity);
        AbilityPopup abilityPopup          = abilityPopupTransform.GetComponent <AbilityPopup>();

        abilityPopup.Setup(ability);

        return(abilityPopup);
    }
コード例 #2
0
 void IncreaseHealth(int hel)
 {
     currentHealth += hel;
     healthBar.SetValue(currentHealth);
     AbilityPopup.Create(GameObject.Find("cyborgman").transform.position, "Rifle Blast");
 }