Stop being retarded
This commit is contained in:
parent
cd4add6d90
commit
b0b02ee8c5
1 changed files with 6 additions and 6 deletions
|
@ -54,26 +54,26 @@ namespace src.Player
|
||||||
|
|
||||||
private void PlaceBomb()
|
private void PlaceBomb()
|
||||||
{
|
{
|
||||||
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WEBGL
|
|
||||||
if (bombPrefab)
|
if (bombPrefab)
|
||||||
{
|
{
|
||||||
Instantiate(bombPrefab, new Vector3(Mathf.RoundToInt(playerTransform.position.x),
|
Instantiate(bombPrefab, new Vector3(Mathf.RoundToInt(playerTransform.position.x),
|
||||||
bombPrefab.transform.position.y, Mathf.RoundToInt(playerTransform.position.z)),
|
bombPrefab.transform.position.y, Mathf.RoundToInt(playerTransform.position.z)),
|
||||||
bombPrefab.transform.rotation);
|
bombPrefab.transform.rotation);
|
||||||
}
|
}
|
||||||
#elif UNITY_IOS || UNITY_ANDROID
|
|
||||||
// Phone movement is not supported yet.
|
|
||||||
#elif UNITY_PS4 || UNITY_XBOXONE
|
|
||||||
// Console movement is not supported yet.
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleBomb()
|
private void HandleBomb()
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WEBGL
|
||||||
if (canPlaceBombs && Input.GetKeyDown(KeyCode.Space))
|
if (canPlaceBombs && Input.GetKeyDown(KeyCode.Space))
|
||||||
{
|
{
|
||||||
PlaceBomb();
|
PlaceBomb();
|
||||||
}
|
}
|
||||||
|
#elif UNITY_IOS || UNITY_ANDROID
|
||||||
|
// Phone bomb placement is not supported yet.
|
||||||
|
#elif UNITY_PS4 || UNITY_XBOXONE
|
||||||
|
// Console bomb placement is not supported yet.
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue