// Start is called before the first frame update void Start() { // GameObject head = new GameObject(); // SpriteRenderer headSpriteRenderer = head.AddComponent<SpriteRenderer>(); // headSpriteRenderer.sprite = GameComponents.componentsInstance.headSprite; signalSpawner = new SignalSpawner(20, 20); head.Setup(signalSpawner); signalSpawner.Setup(head); }
public void Setup(SignalSpawner spawner) { this.spawner = spawner; }