Beispiel #1
0
        private void Awake()
        {
            _context = new WorldInstructionContext(gameObject, Variable.Name + " Responder", null);
            _store   = _context.GetStore(Variable);

            if (_store != null)
            {
                var variable = _store.GetVariable(Variable.Name);
                _store.Subscribe(this, null);
                Trigger(variable);
            }
        }
Beispiel #2
0
 private void Awake()
 {
     Traits.Subscribe(this, null);
     _context = new EcosystemInstructionContext(this, Species.name, null);
 }