Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     name            = this.gameObject.name;
     current_monster = GameObject.Find("GameManager").GetComponent <Manager>().monsters[name];
     Debug.Log(current_monster.health);
     current_health = current_monster.health;
     SteamVR_Controller.Input(0).TriggerHapticPulse(500);
 }
    void add_monster(string name, float health, float damage)
    {
        Monster_details monster = new Monster_details(name, health, damage);

        monsters.Add(name, monster);
    }