public void BinderGameObjectController(GOPlayerController controller)
        {
            if (_controller != null)
            {
                RemoveListener();
                DisposeScript();
            }
            _controller = controller;

            InitScript();
            AddListener();
        }
        public void AttachObject(GOPlayerController controller)
        {
            _curAttachController = controller;
            WallOfAirManager.Instance.RegisterMovedWallOfAir(_curAttachController.transform, 256, new Vector3(Chunk.chunkWidth, 1, Chunk.chunkDepth));
            thirdObjectView = controller.objectView;
            CameraManager.Instance.SetPlayer(controller.transform);
            UseFirstPersonView();
            _userInputActionController.BinderGameObjectController(controller);

            if (MTB_Minimap.Instance != null)
            {
                MTB_Minimap.Instance.SetTarget(CurAttachController.gameObject);
            }
        }
Exemple #3
0
 public ScreenDigActionScript(GameObjectController gameObjectController)
     : base(gameObjectController)
 {
     _playerController = gameObjectController as GOPlayerController;
 }
Exemple #4
0
 public ScreenRayInputConditionScript(GameObjectController gameObjectController)
     : base(gameObjectController)
 {
     _playerController = gameObjectController as GOPlayerController;
 }
 public HandBlockInputConditionScript(GameObjectController gameObjectController)
     : base(gameObjectController)
 {
     _playerController = gameObjectController as GOPlayerController;
 }