/*! * \brief Called at the beginning. */ public void Start() { initialize(); _reactionEngine = ReactionEngine.get(); StartPhenotype(); initMolecules(); }
private bool safeLazyInit() { if (null == _reactionEngine) { _reactionEngine = ReactionEngine.get(); } if (_reactionEngine != null) { if (null == _mediums) { _mediums = _reactionEngine.getMediumList(); } if (null == _mediums) { Logger.Log("VectrosityPanel::safeLazyInit failed to get mediums", Logger.Level.WARN); return(false); } } else { Logger.Log("VectrosityPanel::safeLazyInit failed to get ReactionEngine", Logger.Level.WARN); return(false); } return(true); }
void Start() { _reactionEngine = ReactionEngine.get(); _graphWindow = gameObject.GetComponentInChildren <GraphWindow>(); if (setMedium(ReactionEngine.getMediumFromId(_mediumId, _reactionEngine.getMediumList())) == false) { Logger.Log("Failed to load medium curves", Logger.Level.ERROR); } }
private void initializeIfNecessary() { //??? //gameObject.SetActive(true); _isAlive = true; //LinkedList<Medium> mediums = ReactionEngine.get ().getMediumList(); _medium = ReactionEngine.getMediumFromId(1, ReactionEngine.get().getMediumList()); _maxMediumEnergy = _medium.getMaxEnergy(); _energy = _medium.getEnergy() / _maxMediumEnergy; }
//! Default constructor public IReaction() { _products = new LinkedList <Product>(); _isActive = true; _reactionSpeed = 1f; _energyCost = 0f; //TODO CHECK THIS //enableSequential = true; //enableEnergy = false; enableSequential = ReactionEngine.get().enableSequential; enableEnergy = ReactionEngine.get().enableEnergy; }
void Start() { _reactionEngine = ReactionEngine.get(); safeInitialization(); if (null != equipedWithMoleculesDeviceDummy) { equipedWithMoleculesDeviceDummy.SetActive(false); } else { Logger.Log("GraphMoleculeList::Start failed safeInitialization ", Logger.Level.WARN); } }
public ArrowAnimationManager arrowManager; //Manager for the arrow Animation // Use this for initialization void Start() { _reactionEngine = ReactionEngine.get(); _devicesDisplayer = DevicesDisplayer.get(); SetScreen2(false); SetScreen3(false); SetScreen1(true); _devicesDisplayer.UpdateScreen(); _currentScreen = GameScreen.screen1; _timeAtLastFrame = Time.realtimeSinceStartup; arrowManager = new ArrowAnimationManager(); }
public void Pause(bool pause) { _pauseTransition = !pause; if (_reactionEngine == null) { _reactionEngine = ReactionEngine.get(); } _reactionEngine.Pause(pause); _timeScale = pause ? 0 : 1; if (pause) { Time.timeScale = 0; } roomGraph.setPause(pause); celliaGraph.setPause(pause); hero.Pause(pause); control.Pause(pause); EnemiesManager.Paused = pause; }
new void Start() { base.Start(); Logger.Log("Equipment::Start()", Logger.Level.DEBUG); _reactionEngine = ReactionEngine.get(); }