_xiaofang/xiaofang/Assets/Obi/Scripts/Common/DataStructures/ParticlePair.cs
杨号敬 bcc74f0465 add
2024-12-18 02:18:45 +08:00

25 lines
483 B
C#

using UnityEngine;
using System.Collections;
namespace Obi
{
public struct ParticlePair
{
public int first;
public int second;
public ParticlePair(int first, int second)
{
this.first = first;
this.second = second;
}
public int this[int index]
{
get { return index == 0 ? first : second; }
set { if (index == 0) first = value; else second = value; }
}
}
}