void Start() { timer = gameObject.GetComponentInChildren <Timer>(true); gameObject.AddComponent <VIDE_Data>(); Video = gameObject.GetComponentInChildren <JouerVideo>(true); Photo = gameObject.GetComponentInChildren <CapturePhoto>(true); CoolDown = gameObject.GetComponentInChildren <CoolDown>(true); action = true; }
public void TakePhoto() { CapturePhoto?.Invoke(); }