You've already forked super-mario-bros
mirror of
https://github.com/izzy2lost/super-mario-bros.git
synced 2026-03-26 16:58:05 -07:00
17 lines
437 B
C#
17 lines
437 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SpawnChoice : MonoBehaviour
|
|
{
|
|
public GameObject RedMushroom;
|
|
public GameObject FireFlower;
|
|
void Start()
|
|
{
|
|
//TODO: Replace true with GameObject.FindWithTag("Player") and get their size
|
|
Instantiate(true? RedMushroom : FireFlower , transform.position, Quaternion.identity);
|
|
Destroy(gameObject);
|
|
}
|
|
|
|
}
|