Пример #1
0
 public Mage() : base()
 {
     health    = 30;
     maxHealth = 30;
     attack    = 0;
     className = "mage";
     heroPower = new Fireblast();
     weapon    = null;
     armor     = 0;
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        playerData = GameObject.Find("PlayerData");
        lockSpells = warlock.transform.FindChild("Spells");
        lockStatus = playerData.GetComponent <Variables>();
        fireball   = lockSpells.GetComponent <Fireball>();
        fireblast  = lockSpells.GetComponent <Fireblast>();
        teleport   = lockSpells.GetComponent <Teleport>();
        windblast  = lockSpells.GetComponent <Windblast>();
        gui        = GameObject.FindGameObjectWithTag("GUI").GetComponent <drawGUI>();

        smartCast = false;
    }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        playerData = GameObject.Find("PlayerData");
        lockSpells = warlock.transform.FindChild("Spells");
        lockStatus = playerData.GetComponent<Variables>();
        fireball = lockSpells.GetComponent<Fireball>();
        fireblast = lockSpells.GetComponent<Fireblast>();
        teleport = lockSpells.GetComponent<Teleport>();
        windblast = lockSpells.GetComponent<Windblast>();
        gui = GameObject.FindGameObjectWithTag("GUI").GetComponent<drawGUI>();

        smartCast = false;
    }