Ejemplo n.º 1
0
 void OnMouseDown()
 {
     transform.DOScale(new Vector3(1f, 1f, 1f), 0.1f).OnComplete(
         () => { transform.DOScale(new Vector3(1.1f, 1.1f, 1.1f), 0.1f); }
         );
     loader.Load(0, 1f);
 }
Ejemplo n.º 2
0
    void CollectAssets()
    {
        ui.transform.DOMove(new Vector3(0, 30f, 0), 1f).SetEase(Ease.OutQuart).SetDelay(1).OnStart(
            () => { gameOverSound.Play(); shewSound.Play(); }
            )
        .OnComplete(
            () => { bg.GetComponent <BgControl>().GameOver(); loader.Load(0, 1f, false); }
            );

        if (hint)
        {
            instruction.transform.DOScale(new Vector3(0, 0, 0), 0.2f).SetEase(Ease.OutQuad).SetDelay(1.4f);
            hint.transform.DOScale(new Vector3(0, 0, 0), 0.2f).SetEase(Ease.OutQuad).SetDelay(1.4f)
            .OnComplete(
                () => { shewSound.Play(); objects.transform.DOScale(new Vector3(0.0f, 0.0f, 0.0f), 0.4f).SetEase(Ease.OutCubic); }
                );
        }
        else
        {
            shewSound.Play(); objects.transform.DOScale(new Vector3(0.0f, 0.0f, 0.0f), 0.4f).SetEase(Ease.OutCubic);
        }
    }
Ejemplo n.º 3
0
 public void Load(int num)
 {
     loader.Load(num);
 }