Final Touches

>King's Placement function teaked slightly
This commit is contained in:
Katherine 2021-12-13 12:26:06 -06:00
parent c75832d545
commit 981e254e8b
2 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8397943440757562192}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -273.3493, y: 24.995426, z: 520.2409}
m_LocalPosition: {x: -455.52185, y: 34.993595, z: 676.1095}
m_LocalScale: {x: 40, y: 40, z: 40}
m_Children: []
m_Father: {fileID: 0}

View File

@ -49,6 +49,8 @@ public class KingPlace : MonoBehaviour {
Place = Slime;
break;
}
//Create the object that will follow the Mouse
//Instantiate(Place);
//Layout the grid
Grid.GetComponent<GridReveal>().GridSwitch(true);
@ -70,10 +72,10 @@ public class KingPlace : MonoBehaviour {
//if (child.transform.position.z >= Place.transform.position.x && child.transform.position.z - 20 <= Place.transform.position.x)
//{
// Debug.Log("Help" + child.transform.position.z);
Instantiate(Place);//Place the object (Snap it up and to Grid)
//Place the object (Snap it up and to Grid)
Instantiate(Place);
//break;
//}
}
Grid.GetComponent<GridReveal>().GridSwitch(false); //Switch off the grid
Placing = false;//Stop placing
}