예제 #1
0
    protected override void Awake()
    {
        base.Awake();

        _linkedPath  = GetComponent <LinkedPath>();
        _spriteImage = GetComponent <Image>();
    }
예제 #2
0
    void Awake()
    {
        _tile       = GetComponent <NumberTile>();
        _linkedPath = GetComponent <LinkedPath>();

        _spriteImage = GetComponent <Image>();
    }
예제 #3
0
    public string GetEquationString(LinkedPath path, bool forceValid = false)
    {
        StringBuilder sb = new StringBuilder();

        if (path != null)
        {
            GameTile[] pathArr = path.TileStack.ToArray();

            for (int i = pathArr.Length - 1; i >= 0; i--)
            {
                GameTile tile = pathArr[i];
                sb.Append(tile.Value);

                if (i >= 1)
                {
                    sb.Append(" ");
                }
            }
        }

        return(sb.ToString());
    }
예제 #4
0
 static FileTime CreateFileTime(this Commit current, LinkedPath path) =>
예제 #5
0
 public void UpdateEquation(LinkedPath path)
 {
     equationText.text = GetEquationString(path);
 }