minor syntax
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Jovian.PopupSystem {
|
||||
/// or convenience methods for common types.
|
||||
/// </summary>
|
||||
public readonly struct PopupContentBuilder {
|
||||
readonly PopupView view;
|
||||
private readonly PopupView view;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a builder targeting the given popup view.
|
||||
@@ -32,7 +32,7 @@ namespace Jovian.PopupSystem {
|
||||
/// </summary>
|
||||
public PopupContentBuilder AddText(string text, PopupElementType elementType) {
|
||||
var go = view.GetElement(elementType);
|
||||
if(go == null) {
|
||||
if(!go) {
|
||||
return this;
|
||||
}
|
||||
var tmp = go.GetComponentInChildren<TMP_Text>();
|
||||
|
||||
Reference in New Issue
Block a user