We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
using UnityEngine; using System.Collections;
public class Interactive : MonoBehaviour {
private bool _Selected = false; public bool Selected { get { return _Selected; } } public bool Swap = false; public void Select() { _Selected = true; foreach (var selection in GetComponents<Interaction>()) { selection.Select(); } } public void Deselect() { _Selected = false; foreach (var selection in GetComponents<Interaction>()) { selection.Deselect(); } } // Use this for initialization void Start () { } // Update is called once per frame void Update () { if (Swap) { Swap = false; if (_Selected) Deselect(); else Select (); } }
}
Sorry, something went wrong.
public class Highlight : Interaction {
public GameObject DisplayItem; public override void Deselect () { DisplayItem.SetActive (false); } public override void Select () { DisplayItem.SetActive (true); } // Use this for initialization void Start () { DisplayItem.SetActive (false); }
public abstract class Interaction : MonoBehaviour {
public abstract void Select(); public abstract void Deselect();
JammieDodgers
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: