Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 private void CmdClose()
 {
     /* Update the relic state */
     state = RelicState.ClosedState();
 }