using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class cactus_creating : MonoBehaviour
{
public GameObject[] cactus;
void Start()
{
CalculatePosition();
}
void CalculatePosition()
{
Instantiate(cactus[Random.Range(0, 2)], new Vector3(Random.Range(20f, 30f), Random.Range(-2f, -2.2f), 1f), Quaternion.identity);
}
}