void Start() { handler = transform.parent.GetComponent <TileGameObjectEventHandler>(); tile = transform.parent.GetComponent <TileGameObject>().assosiatedTile; handler.updateEvent.AddListener(ConveyerUpdate); }
void Start() { obj = GetComponent <TileGameObjectEventHandler>(); }