void Start()
 {
     HANDLE_INPUT = this.GetComponent <handleclass>();
     //修正する箇所
     //transform.parent = transform.GetChild(1).gameObject.transform;
     transform.position = GameObject.Find("shooter").transform.position;
     transform.parent   = GameObject.Find("shooter").transform;
 }
Beispiel #2
0
    int max_hp;//初期体力を入れておく変数


    // Start is called before the first frame update
    void Start()
    {
        //PhotonNetwork.Instantiate(this.name,this.transform.position,this.transform.rotation);
        rb            = this.GetComponent <Rigidbody>();
        rb.useGravity = false;
        speed         = 0.0f;
        direction     = 1.0f;
        HANDLE_INPUT  = this.GetComponent <handleclass>();



        //仮設置移行予定
        max_hp = player_hp;
    }