Removed all warnings
This commit is contained in:
parent
3364a2785d
commit
2626dde244
|
@ -10,7 +10,7 @@ public class EnemyPathFinding : MonoBehaviour
|
|||
[SerializeField] public Transform[] targets;
|
||||
|
||||
[SerializeField] private float ropeDistCheck = 1f;
|
||||
[SerializeField] private float stopBeforeTargetOffset = 1f;
|
||||
//[SerializeField] private float stopBeforeTargetOffset = 1f; //Unused
|
||||
[SerializeField] private LayerMask ropeCheckMask;
|
||||
private bool isCollidingWithTarget;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ public class EnemySpawner : NetworkBehaviour
|
|||
[SerializeField] private float difficultyIncreasePerWave = 1f;
|
||||
[SerializeField] public float WaveTime = 20f;
|
||||
[SerializeField] private float SpawnRadius = 10;
|
||||
[SerializeField] private int NumEnemies = 6;
|
||||
//[SerializeField] private int NumEnemies = 6; //Unused
|
||||
private GameObject[] players;
|
||||
[SerializeField] private float initialSpawnDelay = 5;
|
||||
[Space(10)]
|
||||
|
@ -30,7 +30,7 @@ public class EnemySpawner : NetworkBehaviour
|
|||
|
||||
public static EnemySpawner instance;
|
||||
|
||||
private static int idCounter = 0;
|
||||
//private static int idCounter = 0; //Unused
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
|
|
|
@ -13,8 +13,8 @@ public class HealthComponent : MonoBehaviour, ISquezeDamageReceiver
|
|||
[SerializeField] private bool onlyCallZeroHealthOnce = true;
|
||||
[SerializeField] float maxHealth = 100;
|
||||
|
||||
[SerializeField] float damageTickDelay = 0.25f;
|
||||
private float currentDamageTick = 0f;
|
||||
//[SerializeField] float damageTickDelay = 0.25f; //Unused
|
||||
//private float currentDamageTick = 0f; //Unused
|
||||
private float accumulatedDamageInTick = 0f;
|
||||
|
||||
public float currentHealth { get; private set; }
|
||||
|
@ -87,23 +87,22 @@ public class HealthComponent : MonoBehaviour, ISquezeDamageReceiver
|
|||
|
||||
void Update()
|
||||
{
|
||||
return;
|
||||
// blod regen
|
||||
if (bloodRegen)
|
||||
{
|
||||
PlayerInput playerInput = GetComponent<PlayerInput>();
|
||||
float bloodAccumalted = playerInput.PlayerNum == 0 ? BloodComputeShader.Instance.mop1Clean : BloodComputeShader.Instance.mop2Clean;
|
||||
TakeDamage(-bloodAccumalted / regen);
|
||||
}
|
||||
//// blod regen
|
||||
//if (bloodRegen)
|
||||
//{
|
||||
// PlayerInput playerInput = GetComponent<PlayerInput>();
|
||||
// float bloodAccumalted = playerInput.PlayerNum == 0 ? BloodComputeShader.Instance.mop1Clean : BloodComputeShader.Instance.mop2Clean;
|
||||
// TakeDamage(-bloodAccumalted / regen);
|
||||
//}
|
||||
|
||||
if (currentDamageTick < Time.time)
|
||||
{
|
||||
if (accumulatedDamageInTick < 1f) return;
|
||||
//if (currentDamageTick < Time.time)
|
||||
//{
|
||||
// if (accumulatedDamageInTick < 1f) return;
|
||||
|
||||
OnHealthChangeAtPos?.Invoke(transform.position.Add(y: 2f), accumulatedDamageInTick);
|
||||
currentDamageTick = Time.time + damageTickDelay;
|
||||
accumulatedDamageInTick = 0f;
|
||||
}
|
||||
// OnHealthChangeAtPos?.Invoke(transform.position.Add(y: 2f), accumulatedDamageInTick);
|
||||
// currentDamageTick = Time.time + damageTickDelay;
|
||||
// accumulatedDamageInTick = 0f;
|
||||
//}
|
||||
}
|
||||
|
||||
public float getMaxHealth() {
|
||||
|
|
|
@ -79,7 +79,7 @@ public class AudioManager : MonoBehaviour
|
|||
{
|
||||
Destroy(audioSource.gameObject);
|
||||
}
|
||||
catch (SystemException err)
|
||||
catch (SystemException)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ using UnityEngine.InputSystem;
|
|||
|
||||
public class RopeRumbling : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float RopeRubleTolerance = 0.5f;
|
||||
//[SerializeField] private float RopeRubleTolerance = 0.5f; //Unused
|
||||
[SerializeField] private float MaxVibration = 0.8f;
|
||||
|
||||
private PlayerInput pInput;
|
||||
|
|
|
@ -11,7 +11,7 @@ public class PlayerMovement : MonoBehaviour
|
|||
public float moveSpeed = 5f;
|
||||
private Rigidbody2D rb;
|
||||
|
||||
private bool right = false;
|
||||
//private bool right = false; //Unused
|
||||
|
||||
[Header("Whipping")]
|
||||
[SerializeField]
|
||||
|
@ -19,11 +19,11 @@ public class PlayerMovement : MonoBehaviour
|
|||
public float whipSmashSpeed = 2f;
|
||||
public float whipSmashDamageMult = 2f;
|
||||
|
||||
[SerializeField]
|
||||
private float whipMoveSpeed = 25f;
|
||||
//[SerializeField] //Unused
|
||||
//private float whipMoveSpeed = 25f;
|
||||
|
||||
[SerializeField]
|
||||
private float maxWhipMoveSpeed = 30f;
|
||||
//[SerializeField] //Unused
|
||||
//private float maxWhipMoveSpeed = 30f;
|
||||
|
||||
private IMoveData playerInput;
|
||||
|
||||
|
|
|
@ -52,13 +52,13 @@ public class Upgrader : MonoBehaviour
|
|||
private PlayerInput Player1Input;
|
||||
private PlayerInput Player2Input;
|
||||
|
||||
private float acceptTime = 0f;
|
||||
//private float acceptTime = 0f; //Unused
|
||||
|
||||
private Image background;
|
||||
|
||||
private Image[] upgradeImages = new Image[8];
|
||||
|
||||
private bool prevCouldUpgrade = true;
|
||||
// private bool prevCouldUpgrade = true; //Unused
|
||||
|
||||
public Image BloodMeter;
|
||||
public TMPro.TextMeshProUGUI description;
|
||||
|
@ -370,9 +370,6 @@ public class Upgrader : MonoBehaviour
|
|||
|
||||
BloodMeter.fillAmount = ((float)bloodManager.score) / ((float)upgradeCost);
|
||||
}
|
||||
|
||||
// dont care
|
||||
yield return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,12 +6,12 @@ using UnityUtils;
|
|||
|
||||
public class RopeSounding : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float PlayTime = 1f;
|
||||
// [SerializeField] private float PlayTime = 1f; //Unused
|
||||
|
||||
RopeSimulatorOld rope;
|
||||
|
||||
AudioSource AS;
|
||||
float playTimeLeft = 0;
|
||||
//float playTimeLeft = 0; //Unused
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
|
|
Loading…
Reference in New Issue