Exemplo n.º 1
0
    public override Item clone()
    {
        MonguerAxe itemClone = new MonguerAxe();

        itemClone.quantity = this.quantity;
        return(itemClone);
    }
Exemplo n.º 2
0
    // Use this for initialization
    public new void Start()
    {
        base.Start();
        originMoveSpeed = 5;
        moveSpeed       = originMoveSpeed;
        playerTransform = GameObject.FindGameObjectWithTag("Player").transform;
        playerScript    = playerTransform.GetComponent <Player>();
        alerted         = false;
        navAgent        = this.GetComponent <NavMeshAgent>();
        animator        = this.GetComponent <Animator>();
        rotateSpeed     = 1200;
        //lookRange = 15;
        actionTimer = 0.5f;
        attackRange = 7;
        dropList    = new Item[7];
        name        = "Monguer";

        dropList[0] = new MonguerAxe();
        dropList[1] = new HpPotion();
        dropList[2] = new MpPotion();
        dropList[3] = new VillageStone();
        dropList[4] = new TridentStone();
        dropList[5] = new LevelUpStone();
        dropList[6] = new ClassStone();
        audioSource = this.GetComponent <AudioSource>();
    }