Sometimes I need to call the parameters of the weapon that causes damage. It's hard to do this for shootable weapon at present.
Take arrow (arrowGameobject) as an example.
damageData.DamageOriginator.OriginatingGameObject is actually arrowGameobject.
arrowGameObject.GetComponent<Projectile>(). OriginingGameObject is still arrowGameobject. (Is it suitable to change this to weapon gameobject??)
Is it possible to add a weaponGameobject parameter when initializing the projectile?
Take arrow (arrowGameobject) as an example.
damageData.DamageOriginator.OriginatingGameObject is actually arrowGameobject.
arrowGameObject.GetComponent<Projectile>(). OriginingGameObject is still arrowGameobject. (Is it suitable to change this to weapon gameobject??)
Is it possible to add a weaponGameobject parameter when initializing the projectile?