Add ifdefs for platforms
This commit is contained in:
parent
16184dfd31
commit
cd4add6d90
1 changed files with 6 additions and 0 deletions
|
@ -54,12 +54,18 @@ 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()
|
||||
|
|
Loading…
Reference in a new issue