void OnEnable() { if (FilePathEvent == null) { FilePathEvent = GameObject.FindObjectOfType <GetSocialCapture>(); } hasFileExported = false; Path.text = ""; FilePathEvent.FilePathChangeEvent += ChangePath; }
// private bool startedFlag = false; void Awake() { //If we don't currently have a game control... if (instance == null) { //...set this one to be it... instance = this; } //...otherwise... else if (instance != this) { //...destroy this one because it is a duplicate. Destroy(gameObject); } gameOvertext.SetActive(false); _capture = GetComponent <GetSocialCapture>(); }
void Awake() { capture = GetComponent <GetSocialCapture>(); //DontDestroyOnLoad(this.gameObject); }
void Awake() { capture = GetComponent <GetSocialCapture>(); }
void Start() { _animationController = GameController.Instance.AnimationController; _animationController.sequencePlay += RecordVideo; _capture = GetComponent <GetSocialCapture>(); }