/*This is a debug function for the player state machine * The gizmo will change a different color depending on the state * internal void OnDrawGizmos() * { * float radius = 0.5f; * Gizmos.color = inputScript.currentState.GetColor(); * Vector3 center = transform.position + new Vector3(0,3,0); * Gizmos.DrawSphere(center, radius); * }*/ internal void Death() { inputScript.Death(); //animationScript.PlayDeath(); StartCoroutine(WaitToDestroy(2f)); }