// Start is called before the first frame update
    void OnEnable()
    {
        GameManager.onDestroyAllObject += OnDestroyAllObject;
        playerPos = PublicValueStorage.Instance.GetPlayerPos();
        startPos  = this.transform.position;

        laser = this;
        //Debug.Log("Player : " + playerPos);

        line.SetPosition(0, this.transform.position);
        line.SetPosition(1, this.transform.position);
    }
    public void CreateLaserForPlayer(Vector3 contactPosition)
    {
        //Debug.Log("만든다");
        LaserVer2 newPlayerLaser = Instantiate(laserPrefab, contactPosition, Quaternion.Euler(Vector3.zero));

        newPlayerLaser.SetLaserInfo(LaserType.PlayerLaser);
        //newPlayerLaser.transform.position = playerPos;
        newPlayerLaser.gameObject.SetActive(true);

        PublicValueStorage.Instance.AddMissileScore();
        SoundManager.Instance.ShortSpeaker(SoundManager.Speaker.Center, soundPlayerLaser);
        //Debug.Log("다만듬 위치 : " + newPlayerLaser.transform.position);
    }
 // Start is called before the first frame update
 void Start()
 {
     parentScript   = this.transform.parent.GetComponent <LaserVer2>();
     boxCollider2D  = this.GetComponent <BoxCollider2D>();
     spriteRenderer = this.GetComponent <SpriteRenderer>();
 }