actions[i] as InvokableAction == null

hitpp_bob

New member
Code:
// TODO: Version 2.1.5 adds another OnObjectImpact parameter. Remove the above event later once there has been a chance to migrate over.
EventHandler.ExecuteEvent(closestRaycastHit.transform.gameObject, "OnObjectImpact", damageAmount, closestRaycastHit.point, fireDirection * m_ImpactForce * strength, m_Character, this, closestRaycastHit.collider);
parameter this -> (object)this, else actions as InvokableAction == null
 
If you update to the latest version on the Asset Store it should add the null checks - the version number didn't change but the Asset Store should still have the update button.
 
Top