// Use this for initialization void Start() { GameObject TargetCamera= GameObject.Find (Target); if (TargetCamera!=null) { cam = TargetCamera.GetComponent<RemoteCameraCapture>(); if (cam==null) { cam=TargetCamera.AddComponent<RemoteCameraCapture>(); } } myMat = ScreenToDisplayOn.GetComponent<Renderer>().materials; player=GameWorldController.instance.playerUW.gameObject;//GameObject.Find ("Gronk"); }
// Use this for initialization void Start() { GameObject TargetCamera = GameObject.Find(Target); if (TargetCamera != null) { cam = TargetCamera.GetComponent <RemoteCameraCapture>(); if (cam == null) { cam = TargetCamera.AddComponent <RemoteCameraCapture>(); } } myMat = ScreenToDisplayOn.GetComponent <Renderer>().materials; player = UWCharacter.Instance.gameObject; //GameObject.Find ("Gronk"); }