void LineColliding(GameObject line) { if (GameSettings.BULLET_CAN_DESTROY_LINES == true) { ObjectLine lineScript = line.GetComponent <ObjectLine>(); lineScript.DestroyLine(transform.position, true); } m_MainScript.Destroy(); }
void LineColliding(GameObject line, Vector2 collisionPosition) { if (m_MainScript.Invincibility_GetIfInvincible() == false) { ObjectLine lineScript = line.GetComponent <ObjectLine>(); lineScript.DestroyLine(new Vector3(collisionPosition.x, collisionPosition.y, 0.0f), true); m_MainScript.Destroy(); } }