public static ItemKind GetItemKind(ushort id) { if (id > ItemKinds.Length) { return(FieldItemList.GetFieldItemKind(id)); } return((ItemKind)ItemKinds[id]); }
void Start() { playerState = GetComponentInChildren <PlayerState>(); playerState.Initialization(this, (bool end) => loadedState = end); fieldItemList = GetComponentInChildren <FieldItemList>(); fieldItemList.Initialization(this, (bool end) => loadedFieldList = end); fire1.Initialization(); }