Example #1
0
 private void Update()
 {
     matrix.Set(coordinates, this);
     if (TickManager.GetTickComplete())
     {
         if (isTouchingPlayer && summon == null)
         {
             SoundEffectsManager.Play("Snap");
             Instantiate(go);
             fiesta.material  = second;
             isTouchingPlayer = false;
         }
     }
     if (summon)
     {
         target = new Vector3(0, -0.09f, 0);
     }
     else if (fiesta.material = second)
     {
         fiesta.material = first;
         target          = Vector3.zero;
     }
     else
     {
         target = Vector3.zero;
     }
     model.transform.localPosition = Vector3.SmoothDamp(model.transform.localPosition, target, ref velocity, 0.05f);
 }