Ejemplo n.º 1
0
    //===============================================================================
    // 初期化
    //===============================================================================
    void Start()
    {
        input = new ControllerGetInput();

        cameraConfig = camera.GetComponent <CameraConfig>();
        moveTurn     = new MoveTurn(gameObject);
        playerMove   = new PlayerMove(gameObject, cameraConfig);
    }
Ejemplo n.º 2
0
    //===============================================================================
    // 初期化
    //===============================================================================
    void Start()
    {
        cameraConfig = gameObject.GetComponent <CameraConfig>();
        input        = new ControllerGetInput();

        cameraMove      = new CameraMove(this, cameraConfig, gameObject);
        cameraAttention = new CameraAttention(cameraConfig, gameObject);
    }
Ejemplo n.º 3
0
 //===============================================================================
 // コンストラクタ
 //===============================================================================
 public CameraAttention(CameraConfig config, GameObject obj)
 {
     cameraConfig = config;
     input        = new ControllerGetInput();
     cameraObj    = obj.transform;
     parent       = obj.transform.parent;
     nowRange     = config.range;
     kariFrame    = -1;
 }
Ejemplo n.º 4
0
    //===============================================================================
    // コンストラクタ
    //===============================================================================
    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;
    }
Ejemplo n.º 5
0
 //===============================================================================
 // コンストラクタ
 //===============================================================================
 public PlayerMove(GameObject obj, CameraConfig config)
 {
     player       = obj;
     cameraConfig = config;
     input        = new ControllerGetInput();
 }