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); }
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); }