private void Awake()
    {
        this.beamToPoint = GetComponent <BeamToPoint>();
        impactCreator    = GetComponent <ImpactCreator>();

        // Reset localscale if changed due to parent
        var scale = this.transform.localScale;

        if (scale.x < 0)
        {
            scale.x = -scale.x;
        }

        this.transform.localScale = scale;
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     collider2D    = GetComponent <Collider2D>();
     impactCreator = GetComponent <ImpactCreator>();
 }