Example #1
0
        private void CmdDropBomb(Vector3 position)
        {
            GameObject bombObject = (GameObject)Instantiate(bombPrefab, position, Quaternion.identity);
            Bomb       bomb       = bombObject.GetComponent <Bomb>();

            bomb.SetupBomb(bombDropSystem.GetBombRange(), secondsToExplode);
            NetworkServer.Spawn(bombObject);
        }
Example #2
0
        private void DropBomb(Vector3 position, GroundTile groundTile)
        {
            Bomb bomb = Instantiate(bombPrefab, position, Quaternion.identity).GetComponent <Bomb>();

            bomb.SetupBomb(bombDropSystem.GetBombRange(), secondsToExplode);
        }