Esempio n. 1
0
    // Use this for initialization
    public override void Init(Creature ownerCreature, Weapon weapon, Weapon.FiringDesc targetAngle)
    {
        m_effectTargetingPoint = new EffectTargetingCircle();
        base.Init(ownerCreature, weapon, targetAngle);

        if (weapon.WeaponStat.summonRefMobId > 0)
        {
            m_spawnedMob = Const.GetSpawn().SpawnMob(RefData.Instance.RefMobs[weapon.WeaponStat.summonRefMobId], weapon.Level, gameObject.transform.position, false, false);
            m_spawnedMob.EnableNavmesh(false);
            m_spawnedMob.CreatureType = ownerCreature.CreatureType;
            m_spawnedMob.SetTarget(null);
        }
    }