Exemple #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>();
 }
Exemple #2
0
    private AudioSource SE;    //音

    // Use this for initialization
    void Start()
    {
        MC       = GameObject.FindGameObjectWithTag("Player").GetComponent <Magic_Controller>();
        pcVR     = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_ControllerVR>();
        animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Animator>();
        SE       = GetComponent <AudioSource>();
    }
Exemple #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);
 }
Exemple #4
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;
    }
Exemple #5
0
    // Use this for initialization
    void Start()
    {
        MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();

        for(int i = 0;i < Icon.Length; i++)
        {
            Icon[i].GetComponent<Image>().sprite = IconTexture[MC.selectmagic[i]];
        }
    }
Exemple #6
0
    // Use this for initialization
    void Start()
    {
        Player = GameObject.FindGameObjectWithTag("Player");
        MC     = Player.GetComponent <Magic_Controller>();
        pcVR   = Player.GetComponent <Player_ControllerVR>();
        //vision = Player.GetComponentInChildren<Vision>();

        //animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Animator>();
        SE = GetComponent <AudioSource>();
    }
Exemple #7
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;
        }
    }
Exemple #8
0
 // Use this for initialization
 void Start()
 {
     MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>();
     pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();
 }
Exemple #9
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>();
 }
Exemple #10
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>();
    }