Beispiel #1
0
    public void MoveLeft()
    {
        wall.ball();
        transform.DOMoveY(y2, speed).OnComplete(MoveRight);

        bRenderer.material.DOColor(Color.cyan, 3f);
    }
Beispiel #2
0
 public void MoveRight()
 {
     wall2.ball();
     transform.DOMoveY(y1, speed).OnComplete(MoveLeft);
     bRenderer.material.DOColor(Color.red, 3f);
 }