Example #1
0
        public static void ConstructBackgroundMenu()
        {
            BackgroundController controller = GameObject.FindObjectOfType <BackgroundController>();

            _instance = controller;

            _instance.ConstructBackground();
        }
Example #2
0
        // Start is called before the first frame update
        private void Start()
        {
            _instance = this;

            BehaviourManager.Instance.Add(this);
            _mainCamera             = Camera.main;
            _cameraPreviousPosition = _mainCamera.transform.position;

            Vector3 reposition = (Vector3)_cameraPreviousPosition;

            reposition.z       = OffsetZ;
            transform.position = reposition;
        }