Ejemplo n.º 1
0
 /// <summary>
 /// assign the defendable object and get the script component
 /// </summary>
 void Start()
 {
     defendableObject = GameObject.Find("DefendableObject");
     DO = defendableObject.GetComponent<DefendableObject>();
     RL = Redlight.GetComponent<Light>();
 }
Ejemplo n.º 2
0
    public override void Use()
    {
        dO = GameObject.FindObjectOfType<DefendableObject>();

        //dO.heal(healingValue);
    }