public override string GetSaveString() { //int differentEnemyTypes = enemyTypes.Count; var saveString = string.Join(SPLIT_CHAR.ToString(), new [] { objectID, transform.position.x, transform.position.y, transform.position.z, barriers[0].transform.position.x, barriers[0].transform.position.y, barriers[0].transform.position.z, barriers[1].transform.position.x, barriers[1].transform.position.y, barriers[1].transform.position.z, minEnemies, maxEnemies, spawnCircleWidth, spawnCircleHeight, barriers[0].transform.localScale.y, /*enemyTypes[0]*/ }.Select(s => s.ToString()).ToArray()); if (enemyTypes == null || enemyTypes.Length == 0) { saveString += SPLIT_CHAR.ToString() + "0"; } else { saveString += SPLIT_CHAR.ToString() + enemyTypes.Length; for (int i = 0; i < enemyTypes.Length; i++) { saveString += SPLIT_CHAR.ToString() + enemyTypes[i].objectID; } } saveString += SPLIT_CHAR.ToString() + trigger.size.x; return(saveString); }
public override string GetSaveString() { return(string.Join(SPLIT_CHAR.ToString(), new [] { objectID, transform.position.x, transform.position.y, transform.position.z, finishPoint ? 1 : 0 }.Select(s => s.ToString()).ToArray())); }
public override string GetSaveString() { return(string.Join(SPLIT_CHAR.ToString(), new [] { objectID, transform.position.x, transform.position.y, transform.position.z, transform.localScale.x, transform.localScale.y, duration }.Select(s => s.ToString()).ToArray())); }