Example #1
0
 void OnEnable()
 {
     if (FilePathEvent == null)
     {
         FilePathEvent = GameObject.FindObjectOfType <GetSocialCapture>();
     }
     hasFileExported = false;
     Path.text       = "";
     FilePathEvent.FilePathChangeEvent += ChangePath;
 }
Example #2
0
//	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>();
    }
Example #3
0
 void Awake()
 {
     capture = GetComponent <GetSocialCapture>();
     //DontDestroyOnLoad(this.gameObject);
 }
Example #4
0
 void Awake()
 {
     capture = GetComponent <GetSocialCapture>();
 }
Example #5
0
 void Start()
 {
     _animationController = GameController.Instance.AnimationController;
     _animationController.sequencePlay += RecordVideo;
     _capture = GetComponent <GetSocialCapture>();
 }