Ejemplo n.º 1
0
        public virtual void OnSpawn(Spawner spawner, CharacterConfig config)
        {
            _spawnedBy = spawner;
            if (config != null)
            {
                _config = config;
            }

            Debug.Assert(Config != null);
            _entity = gameObject.AddComponent <EntityID>();
            _entity.SetID(Config.CharacterID);
        }