Esempio n. 1
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>();
    }
Esempio n. 2
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>();
    }
Esempio n. 3
0
    void Awake()
    {
        Pz = GetComponent <Player_ControllerVR>();

        //選択されてる魔法の番号を渡す。(スキマが間に合わないのでとりあえず魔法は固定)
        MagicSet(0, 1, 2, 3, 4, 5 /*, 6, 7*/);

        /*
         * MagicSet(
         *  _static.SelectMagicID[0],
         *  _static.SelectMagicID[1],
         *  _static.SelectMagicID[2],
         *  _static.SelectMagicID[3],
         *  _static.SelectMagicID[4]);
         */

        for (int i = 0; i < Magic.Length; i++)
        {
            Magic[i].GetComponent <Magic_Parameter>().SetParent(this.gameObject);//親はプレイヤー
        }

        stockMagic.Add(100);
    }