Exemplo n.º 1
0
    /// <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);
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     director = GetComponent <PlayableDirector>();
     text.Init();
 }