Ejemplo n.º 1
0
    IEnumerator emphasizeMult()
    {
        Vector3 startPos    = transform.position;
        Vector3 centerPoint = parentRect.localPosition;
        Vector3 topPoint    = new Vector3(centerPoint.x, centerPoint.y + 10f, transform.position.z);

        transform.position = topPoint;
        springyMove.StartMove(centerPoint);
        yield return(new WaitForSeconds(1f));

        springyMove.StartMove(startPos);
    }
Ejemplo n.º 2
0
    private void OnEnable()
    {
        Vector3 getTo = transform.position;

        transform.position = new Vector3(transform.position.x, 10, transform.position.z);
        springyMove.StartMove(getTo);
    }
Ejemplo n.º 3
0
 // Update is called once per frame
 void Update()
 {
     try{
         if (ps.GetCurrentPoints() == pointsNeeded[currentIndex])
         {
             Vector3 moveTo = new Vector3(tutorials[currentIndex].position.x, Camera.main.transform.position.y, Camera.main.transform.position.z);
             camerasSpring.StartMove(moveTo);
             currentIndex += 1;
         }
     }catch {
         currentIndex = 0;
     }
 }
Ejemplo n.º 4
0
 public override void SetTileSlot(TileSlot tileSlot)
 {
     base.SetTileSlot(tileSlot);
     springyMove.StartMove(tileSlot.transform.position);
 }