コード例 #1
0
 void OnEnable()
 {
     // Reset default values
     canDefend = true;
     canAttack = true;
     transform.localPosition = holdPosition;
     weaponControls.Enable();
 }
コード例 #2
0
 void OnEnable()
 {
     if (weaponControls != null)
     {
         weaponControls.Enable();
     }
     canShoot          = true;
     handGunSF.enabled = true;
 }
コード例 #3
0
    void OnEnable()
    {
        weaponControls.Enable();

        canSwing         = true;
        swungOnce        = false;
        spoken           = false;
        hitSound.enabled = true;
    }
コード例 #4
0
 void OnEnable()
 {
     beenThrown = false;
     ready      = true;
     if (weaponControls == null)
     {
         return;
     }
     weaponControls.Enable();
 }
コード例 #5
0
    void OnEnable()
    {
        weaponControls.Enable();

        // Brings boomerang back to the player when enabled
        isThrown           = false;
        movingForward      = false;
        transform.position = playerWeaponHold.position;
        transform.rotation = originalRotation;

        hitSF.enabled = true;
    }
コード例 #6
0
 void OnEnable()
 {
     weaponControls.Enable();
     canShoot          = true;
     pinkRayLineSpoken = false;
 }