Exemplo n.º 1
0
        public void DeleteNotification()
        {
            Lerping Lerp = gameObject.AddComponent <Lerping>();

            NotificationsCreator.Source.PlayOneShot(DeleteFX);
            StartCoroutine(Lerp.LerpAction(transform, 0, 1, 0.5f));
        }
Exemplo n.º 2
0
 private void DestroyNotifications()
 {
     for (int i = 0; i < transformInstance.transform.childCount; i++)
     {
         Debug.Log(true);
         Transform temp = transformInstance.transform.GetChild(i).gameObject.GetComponent <RectTransform>();
         StartCoroutine(lerp.LerpAction(temp, 0, 1, 0.5f));
     }
 }