public void Start() { MyFunctions.AddCameraListener(this); player = GetComponent <PlayerClass>(); size = boxCollider.size * transform.lossyScale; }
private void Start() { Camera camera = MyFunctions.AddCameraListener(this); cam = new CameraInfo(camera); }