コード例 #1
0
ファイル: ShooterControl.cs プロジェクト: kerrot/BulletVR
    void Start()
    {
        line = GetComponent <LineDrawControl>();
        au   = GetComponent <AudioSource>();

        layerMask       = LayerMask.GetMask("Wall");
        cw              = HMD.GetComponent <CameraWork>();
        cw.OnFollowEnd += CameraWorkEnd;

        BC = bullet.GetComponent <BulletControl>();

        transform.rotation = Quaternion.Euler(startRotation);
    }
コード例 #2
0
 void Start()
 {
     lines = GetComponent <LineDrawControl> ();
 }