internal void MoveOnTile(GameObject go2) { TileBehaviour tb = go2.GetComponent <TileBehaviour>(); if (tb != null) { pawnPlan.AddCommand(new MoveCommand(tb, gameObject, 2)); Debug.Log("added " + go2.transform.position.ToString()); } }