dots created, toggle methods created
This commit is contained in:
19
Assets/Scripts/ToggleDots.cs
Normal file
19
Assets/Scripts/ToggleDots.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Scripts/ToggleDots.cs.meta
Normal file
11
Assets/Scripts/ToggleDots.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9213a906c4bf7e743a6a93cd31e56ae8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user