Exemple #1
0
        private void CreateBombObject(Vector3 bombPosition, Quaternion bombRotation)
        {
            GenericDeviceGameObject prefab = Resources.Load <GenericDeviceGameObject>((BombsManager.CurrentDevice as GenericBomb).bombPrefabPath);

            BombGO = MonoBehaviour.Instantiate(prefab, bombPosition, bombRotation, Board.GetBoard());
            BombGO.Initialize(BombsManager.CurrentDevice as GenericBomb);
        }