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