unity-atoms/Packages/SceneMgmt/Runtime/Pairs/SceneFieldPair.cs
Adam Ramberg c3bc59259f More WIP
2020-03-02 02:26:06 +01:00

22 lines
681 B
C#

using System;
using UnityEngine;
using UnityAtoms.SceneMgmt;
namespace UnityAtoms.SceneMgmt
{
/// <summary>
/// IPair of type `&lt;SceneField&gt;`. Inherits from `IPair&lt;SceneField&gt;`.
/// </summary>
[Serializable]
public struct SceneFieldPair : IPair<SceneField>
{
public SceneField Item1 { get => _item1; set => _item1 = value; }
public SceneField Item2 { get => _item2; set => _item2 = value; }
[SerializeField]
private SceneField _item1;
[SerializeField]
private SceneField _item2;
public void Deconstruct(out SceneField item1, out SceneField item2) { item1 = Item1; item2 = Item2; }
}
}