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

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