FittsLaw/Assets/Scripts/ToggleDots.cs

19 lines
398 B
C#
Raw Normal View History

2018-10-09 00:58:58 -04:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ToggleDots : MonoBehaviour
{
static void ToggleOn(string dot)
{
GameObject orb = GameObject.Find(dot);
orb.SetActive(true);
}
static void ToggleOff(string dot)
{
GameObject orb = GameObject.Find(dot);
orb.SetActive(false);
}
}