private void RoadCommonObject() { commonObjectList = new GameObject[(int)ResourceInformation.Object.CommonObject.MAX]; for (int i = 0; i < commonObjectList.Length; ++i) { ResourceInformation.Object.CommonObject index = (ResourceInformation.Object.CommonObject)i; commonObjectList[i] = Resources.Load(ResourceInformation.Object.Path.COMMON_OBJECT + index.ToString()) as GameObject; } commonEffectList = new GameObject[(int)ResourceInformation.Effect.CommonEffec.MAX]; for (int i = 0; i < commonEffectList.Length; ++i) { ResourceInformation.Effect.CommonEffec index = (ResourceInformation.Effect.CommonEffec)i; commonEffectList[i] = Resources.Load(ResourceInformation.Effect.Path.COMMON_EFFECT + index.ToString()) as GameObject; } }
public GameObject GetCommonEffect(ResourceInformation.Effect.CommonEffec _index) { return(commonEffectList[(int)_index]); }