// Start is called before the first frame update void Start() { __sr = GetComponent <SpriteRenderer>(); __stage = GetComponent <Stage>(); if (!!__sr && __stage) { __sr.sprite = LevelProgress.getCompletion(__stage.level_to_load, __stage.stage_to_load) ? stage_done : stage_undone; } }
public void updateCompletionFromLevelProgress() { bool stage_done = LevelProgress.getCompletion(level_to_load, stage_to_load); if (stage_done) { // unlock neighbors __completion_status = COMPLETION.DONE; unlock_neighbors(); } }