//=============================================================================== // 初期化 //=============================================================================== void Start() { input = new ControllerGetInput(); cameraConfig = camera.GetComponent <CameraConfig>(); moveTurn = new MoveTurn(gameObject); playerMove = new PlayerMove(gameObject, cameraConfig); }
//=============================================================================== // 初期化 //=============================================================================== void Start() { cameraConfig = gameObject.GetComponent <CameraConfig>(); input = new ControllerGetInput(); cameraMove = new CameraMove(this, cameraConfig, gameObject); cameraAttention = new CameraAttention(cameraConfig, gameObject); }
//=============================================================================== // コンストラクタ //=============================================================================== public CameraAttention(CameraConfig config, GameObject obj) { cameraConfig = config; input = new ControllerGetInput(); cameraObj = obj.transform; parent = obj.transform.parent; nowRange = config.range; kariFrame = -1; }
//=============================================================================== // コンストラクタ //=============================================================================== public CameraMove(CameraController controller, CameraConfig config, GameObject obj) { cameraController = controller; cameraConfig = config; cameraObj = obj.transform; parent = obj.transform.parent; input = new ControllerGetInput(); move = Vector2.zero; move.y = 0.6f; }
//=============================================================================== // コンストラクタ //=============================================================================== public PlayerMove(GameObject obj, CameraConfig config) { player = obj; cameraConfig = config; input = new ControllerGetInput(); }