protected override void ItemAwake() { base.ItemAwake(); /* Set the initial state. On clients this gets overridden in OnStartClient. */ state = RelicState.ClosedState(); /* Get all of the relic pieces */ pieces = GetComponentsInChildren <RelicPiece>(); /* The relic isn't updating right now */ updating = false; }
private void CmdClose() { /* Update the relic state */ state = RelicState.ClosedState(); }