Пример #1
0
 void Awake()
 {
     Assert.IsNotNull(muzzle);
     Assert.IsNotNull(lineRenderer);
     lineRenderer.enabled = false;
     appearance           = DeviceAppearance.REAL;
 }
Пример #2
0
    protected override void OnAwake()
    {
        Assert.IsNotNull(forestIslandRoot);

        Assert.IsNotNull(hapticCenter);
        Assert.IsNotNull(player);
        Assert.IsNotNull(playerCamera);
        Assert.IsNotNull(gun);
        Assert.IsNotNull(gunSupport);
        Assert.IsNotNull(racket);
        Assert.IsNotNull(racketSupport);
        Assert.IsNotNull(panel);

        isCalibrated       = false;
        isDeviceFree       = new bool[3];
        isDeviceReady      = new bool[3];
        isDeviceFetched    = new bool[3];
        isClubReady        = new bool[3];
        isClubPlayed       = new bool[3];
        isInReadyZone      = new bool[3];
        isReadyTextShowed  = new bool[3];
        isStartTextShowed  = new bool[3];
        canShoot           = true;
        gunAppearance      = DeviceAppearance.REAL;
        isDeviceFollowHand = false;
    }
Пример #3
0
 public IEnumerator StartListenToFetchTrigger()
 {
     while (true)
     {
         if (DataManager.instance.isDeviceFetched[(int)SceneState.SHOOTING_CLUB])
         {
             appearance = DeviceAppearance.VIRTUAL;
         }
     }
 }