// Start is called before the first frame update void Start() { railWalker = GetComponent <RailWalker>(); }
public void Init(RailWalker train, Vector2Int coords) { train.onNewCoords.AddListener(OnNewTrainCoords); this.coords = coords; }
// Start is called before the first frame update void Start() { railWalker = GetComponent <RailWalker>(); }
public void Init(RailWalker train, Vector2Int coords) { train.onNewCoords.AddListener(OnNewTrainCoords); this.coords = coords; }