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