// Use this for initialization public override void Start() { SituationName = GlobalTrainingString.oilSpill; currentState = eTrainingState.OilSpill; SequencingItems = new eItems[] { eItems.FireAlert, eItems.Rod, eItems.MusterPoint }; ManagerInteractItems.Instance.ActivateNextObject(SequencingItems[0]); InteractItem _item = ManagerInteractItems.Instance.GetItem(eItems.Rod); _item.GetComponent <RodItem>().ActivateSituation(); }
// Use this for initialization public override void Start() { SituationName = GlobalTrainingString.evacuation; currentState = eTrainingState.Evacuation; SequencingItems = new eItems[] { eItems.GasMask, eItems.EmergencyEvacuation }; ManagerInteractItems.Instance.ActivateNextObject(SequencingItems[0]); InteractItem _item = ManagerInteractItems.Instance.GetItem(eItems.FireAlert); FireAlertItem _alert = _item.GetComponent <FireAlertItem>(); _alert.LightAlert.SetActive(true); }
// Use this for initialization public override void Start() { SituationName = GlobalTrainingString.fire; currentState = eTrainingState.Fire; SequencingItems = new eItems[] { eItems.FireAlert, eItems.Extinguisher, eItems.Fire, eItems.MusterPoint }; ManagerInteractItems.Instance.ActivateNextObject(SequencingItems[0]); InteractItem _item = ManagerInteractItems.Instance.GetItem(eItems.Fire); FireItem _fire = _item.GetComponent <FireItem>(); _fire.gameObject.SetActive(true); }