Пример #1
0
    void Start()
    {
        dropTable      = new DropTable();
        dropTable.loot = new List <LootDrop>
        {
            new LootDrop("sword", 25),
            new LootDrop("staff", 25),
            new LootDrop("potion_log", 25)
        };

        ID             = 0;
        Experiance     = 20;
        navAgent       = GetComponent <NavMeshAgent>();
        chatacterStats = new ChatacterStats(6, 10, 2);
        currentHealth  = maxHealth;
    }
 void Start()
 {
     stats = GetComponent <Player>().chatacterStats;
 }
Пример #3
0
 public void Consume(ChatacterStats stats)
 {
     Debug.Log("You drank the potion, bot");
 }
Пример #4
0
 void Start()
 {
     spawnProjectile = transform.Find("ProjectileSpawn");
     chatacterStats  = GetComponent <Player>().chatacterStats;
 }
Пример #5
0
 void Start()
 {
     PlayerLevel        = GetComponent <PlayerLevel>();
     this.currentHealth = this.maxHealth;
     chatacterStats     = new ChatacterStats(10, 10, 10);
 }