Exemplo n.º 1
0
    //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>();
    }
Exemplo n.º 2
0
 public void StartSnap(LaserSnapTo snapTarget)
 {
     snapped = true;
     target  = snapTarget;
     StartCoroutine(Follow());
 }