/// <summary> /// Called on creation. Creates tabletActivate event /// </summary> protected virtual void Awake() { tabletActivate = new TabletEvent(); slider = transform.GetChild(0).GetChild(0).gameObject; cg = slider.GetComponent <CanvasGroup>(); aud = GetComponent <AudioSource>(); }
protected override void Awake() { tabletActivate = new TabletEvent(); aud = GetComponent <AudioSource>(); }