コード例 #1
0
        public static NFTShapeHQImageHandler Create(NFTShapeHQImageConfig config)
        {
            if (config.asset == null || config.controller == null)
            {
                return(null);
            }

            return(new NFTShapeHQImageHandler(config));
        }
コード例 #2
0
        private NFTShapeHQImageHandler(NFTShapeHQImageConfig config)
        {
            this.config = config;
            this.asset  = config.asset;

            camera         = Camera.main;
            nftControllerT = config.controller.transform;

            CommonScriptableObjects.playerUnityPosition.OnChange += OnPlayerPositionChanged;
            OnPlayerPositionChanged(CommonScriptableObjects.playerUnityPosition, Vector3.zero);
        }