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); } }
public ScreenDigActionScript(GameObjectController gameObjectController) : base(gameObjectController) { _playerController = gameObjectController as GOPlayerController; }
public ScreenRayInputConditionScript(GameObjectController gameObjectController) : base(gameObjectController) { _playerController = gameObjectController as GOPlayerController; }
public HandBlockInputConditionScript(GameObjectController gameObjectController) : base(gameObjectController) { _playerController = gameObjectController as GOPlayerController; }