コード例 #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;
    }
コード例 #2
0
 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);
 }