suriyun-production / battle-io-docs

This is document for Battle IO project (https://www.assetstore.unity3d.com/#!/content/101113?aid=1100lGeN)
https://suriyun-production.github.io/battle-io-docs/
1 stars 0 forks source link

status effect Entity bugged #8

Closed Vauxvogh closed 4 years ago

Vauxvogh commented 4 years ago

Status effect entity not working because its only creating negative hash ids when I create a new status effect. It doesnt let me change it, and when trying to use the -hash id Status Effect Entity on a skill in game it throws this error and everyone stops attacking

"float.NaN has been passed into WaitForSeconds which will result in an infinite wait time. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"

im using unity 2019.3.6

Vauxvogh commented 4 years ago

UPDATE* I have updated unity to 2019.3.7 and it seems to be working, i created 2 status effect enities and they started as negative but then I changed the prefab name and they changed to a positive number. Just made a new one and it stayed negative but it works. So it seems like its all good.

insthync commented 4 years ago

It can have the negative hash id, it's not the problem. The thing that I don't know is when it pass hash id to WaitForSeconds ?

Vauxvogh commented 4 years ago

Yeah im not sure about that, I think that is happening if the lifetime is set to 0 on the status effect. But it seems to be working right now. :)