//A reference to the shattering particle effect that should be used when the ball breaks //public ParticleSystem shatterParticles; public override void Apply(BallController ball) { base.Apply(ball); cam = GameObject.FindWithTag("CameraRig").GetComponent <AmazeballCam>(); //enable laser snapping laserSnapTo = ball.GetComponent <LaserSnapTo> (); laserSnapTo.Enable(); //enable ball shattering //ball.gameObject.AddComponent<BallShatterer>(); }
public void StartSnap(LaserSnapTo snapTarget) { snapped = true; target = snapTarget; StartCoroutine(Follow()); }