public virtual void OnHit(Aircraft target, bool killed, Node bulletNode) { var body = bulletNode.GetComponent<RigidBody>(); if (body != null) body.Enabled = false; bulletNode.SetScale(0); }
public virtual void OnHit(Aircraft target, bool killed, Node bulletNode) { var body = bulletNode.GetComponent<RigidBody>(); if (body != null) body.Enabled = false; bulletNode.SetScale(0); }