2022-06-25 15:42:49 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class yolo : MonoBehaviour
|
|
|
|
{
|
|
|
|
public Pukvbrane pukvbrane;
|
|
|
|
|
|
|
|
public GameObject totok;
|
2022-06-27 11:54:53 +02:00
|
|
|
public bombspawner bs;
|
|
|
|
|
2022-06-25 15:42:49 +02:00
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
void OnCollisionEnter(Collision other) {
|
|
|
|
if(other.gameObject.tag == "Player"){
|
|
|
|
pukvbrane.collectedcubes = 0;
|
|
|
|
}
|
|
|
|
else if (other.gameObject.tag == "puk"){
|
|
|
|
Destroy(other.gameObject);
|
|
|
|
pukvbrane.PlaceObj();
|
|
|
|
}
|
2022-06-27 11:54:53 +02:00
|
|
|
bs.PlaceObj();
|
2022-06-25 15:42:49 +02:00
|
|
|
Destroy(this.gameObject);
|
|
|
|
}
|
|
|
|
}
|