Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
     pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();
     animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Animator>();
     SE = GetComponent<AudioSource>();
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
        pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();

        CameraStartPos = Camera.main.gameObject.transform.localPosition;
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
     pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();
     z_camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Z_Camera>();
     bullet = GameObject.Instantiate(bullet_Prefab);
 }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>();
        pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();

        for(int i = 0; i < 3; i++)
        {
            istyuto[i] = false;
        }
    }
Ejemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        guiText = this.GetComponent<Text>();

        switch(type){
            case Text_Type.Day:
                _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>();

                if (_static.day - (int)_static.day == 0.5f) {
                    guiText.text = (int)_static.day + "日目 夜";
                }
                else
                {
                    guiText.text = (int)_static.day + "日目 昼";
                }
                break;
            case Text_Type.LP:
                _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>();
                guiText.text = "名声 " + _static.lank_P;
                break;
            case Text_Type.BP:
                _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>();
                guiText.text = "BP " + _static.bonus_P;
                break;
            case Text_Type.HP:

                pcZ = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player_ControllerZ>();
                break;
            case Text_Type.MP:

                pcZ = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player_ControllerZ>();
                break;
            case Text_Type.Magic:

                mc = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
                break;
            case Text_Type.Enemy:

                ecZ = GameObject.Find("Boss_DarkLilith").GetComponent<Enemy_ControllerZ>();
                break;
            default:
                break;
        }
    }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
     pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();
 }
Ejemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
     pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();
     zcamera = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Z_Camera>();
 }
Ejemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     QM = GameObject.FindGameObjectWithTag("Manager").GetComponent<QuestManager>();
     PCZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();
 }
Ejemplo n.º 9
0
    void Start()
    {
        pcZ = Parent.GetComponent<Player_ControllerZ>();

        PlayerRenderer = PlayerModel.GetComponentsInChildren<MeshRenderer>();
        PlayerSkinRenderer = PlayerModel.GetComponentsInChildren<SkinnedMeshRenderer>();
    }
Ejemplo n.º 10
0
    void Start()
    {
        circleGauge = GetComponent<Image>();
        pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();

        switch (type)
        {
            case GaugeType.HP:
                oldHP = pcZ.GetHP();
                maxHP = oldHP;
                break;
            case GaugeType.MP:
                oldMP = pcZ.GetMP();
                maxMP = oldMP;
                break;
            default:
                break;
        }
    }
Ejemplo n.º 11
0
    // Use this for initialization
    void Start()
    {
        MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
        pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();

        animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Animator>();
        SE = GetComponent<AudioSource>();

        CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>();

        zcamera = Camera.main.gameObject.GetComponentInChildren<Z_Camera>();
    }
Ejemplo n.º 12
0
    void Start()
    {
        //Playerをセットし忘れてたら探す
        if (lookTarget == null) lookTarget = GameObject.FindGameObjectWithTag("Player");

        pcZ = lookTarget.GetComponent<Player_ControllerZ>();
        Zcamara = GetComponent<Z_Camera>();

        //現在の向きから割り出さないとだめ
        //horizontalAngle = lookTarget.transform.eulerAngles.y;
        verticalAngle = 0.0f;
        elapsedTime = 0;
        EndPos = lookTarget.transform.eulerAngles.y;
        StartPos = horizontalAngle;
        time = 0.5f;
        deltaPos = (EndPos - StartPos) / time;
        deltaPos = Mathf.Repeat(deltaPos, 360.0f / time);//360進数に直す

        is_Q_Move = true;
    }
Ejemplo n.º 13
0
    // Use this for initialization
    void Start()
    {
        Player = GameObject.FindGameObjectWithTag("Player");
        pcZ = Player.GetComponent<Player_ControllerZ>();

        nearMarker = GameObject.Find("nearMarker");
        targetMarker = GameObject.Find("targetMarker");

        nearMarker.SetActive(false);
        targetMarker.SetActive(false);

        QuakeMagnitude /= 1000;//これでわかりやすく
    }