//子弹特殊效果强化 public bool enforceWeapon(GameObject obj) { bulletEnforce_Property bulletEnforcePro = obj.GetComponent <bulletEnforce_Property> (); bulletSpeStruct bulletSpe = bulletEnforcePro.bulletSpe; char_property charProperty = gameObject.GetComponent <char_property> (); if (charProperty) { charProperty.enforceBullet(bulletSpe); return(true); } Debug.Log("子弹效果无法强化,请检查系统!"); return(false); }