Stop being retarded

This commit is contained in:
Andrei Gavra 2019-06-02 14:33:06 +03:00
parent cd4add6d90
commit b0b02ee8c5

View file

@ -54,26 +54,26 @@ namespace src.Player
private void PlaceBomb()
{
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WEBGL
if (bombPrefab)
{
Instantiate(bombPrefab, new Vector3(Mathf.RoundToInt(playerTransform.position.x),
bombPrefab.transform.position.y, Mathf.RoundToInt(playerTransform.position.z)),
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()
{
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WEBGL
if (canPlaceBombs && Input.GetKeyDown(KeyCode.Space))
{
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
}
}
}