Exemple #1
0
        public void DeleteNotification()
        {
            Lerping Lerp = gameObject.AddComponent <Lerping>();

            NotificationsCreator.Source.PlayOneShot(DeleteFX);
            StartCoroutine(Lerp.LerpAction(transform, 0, 1, 0.5f));
        }
Exemple #2
0
 void Start()
 {
     lerp = gameObject.AddComponent <Lerping>();
     CountOfNotifications = parent.childCount;
     transformInstance    = parent;
     PrefabInstance       = Prefab;
     StaticCountText      = CountText;
     Source = gameObject.GetComponent <AudioSource>();
     StartCoroutine(Updater());
     Actions();
 }
Exemple #3
0
 void Awake()
 {
     instance = this;
 }