public static ResourceDepositManager.ResourceDeposit GetOrCreate(Vector3 pos) { ResourceDepositManager.ResourceDeposit fromPosition = ResourceDepositManager.Get().GetFromPosition(pos); if (fromPosition != null) { return(fromPosition); } return(ResourceDepositManager.Get().CreateFromPosition(pos)); }
public static ResourceDepositManager.ResourceDeposit GetOrCreate(Vector3 pos) { return(ResourceDepositManager.Get().GetFromPosition(pos) ?? ResourceDepositManager.Get().CreateFromPosition(pos)); }