mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
22 lines
761 B
C#
22 lines
761 B
C#
|
using System;
|
||
|
using UnityEngine;
|
||
|
using UnityAtoms.MonoHooks;
|
||
|
namespace UnityAtoms.MonoHooks
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// IPair of type `<ColliderGameObject>`. Inherits from `IPair<ColliderGameObject>`.
|
||
|
/// </summary>
|
||
|
[Serializable]
|
||
|
public struct ColliderGameObjectPair : IPair<ColliderGameObject>
|
||
|
{
|
||
|
public ColliderGameObject Item1 { get => _item1; set => _item1 = value; }
|
||
|
public ColliderGameObject Item2 { get => _item2; set => _item2 = value; }
|
||
|
|
||
|
[SerializeField]
|
||
|
private ColliderGameObject _item1;
|
||
|
[SerializeField]
|
||
|
private ColliderGameObject _item2;
|
||
|
|
||
|
public void Deconstruct(out ColliderGameObject item1, out ColliderGameObject item2) { item1 = Item1; item2 = Item2; }
|
||
|
}
|
||
|
}
|