/// <summary> /// Initialization /// </summary> private void Init() { if (path == null) { return; } descriptionText.Init(); timeToMoveBetweenTiles = 1.0f; // set the proper index for the starting tile RefreshCurrentTile(startTile); isTravelingForward = startsTravelingForward; // set the starting position transform.position = CalcPositionOverTile(startTile); // face to the next tile FaceToNextTile(true, Time.deltaTime); }
// Use this for initialization void Start() { director = GetComponent <PlayableDirector>(); text.Init(); }