添加插件
This commit is contained in:
24
Assets/Obi/Scripts/Common/DataStructures/ParticlePair.cs
Normal file
24
Assets/Obi/Scripts/Common/DataStructures/ParticlePair.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user