This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[RequireComponent(typeof(Dropdown))] | |
public class SaveDropdownValue : MonoBehaviour | |
{ | |
const string PrefName = "optionvalue"; | |
private Dropdown _dropdown; | |
void Awake() | |
{ | |
_dropdown = GetComponent<Dropdown>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using UnityEngine.UI; | |
public class CountdownController : MonoBehaviour | |
{ | |
public int seconds = 10; | |
public Text countdown; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Serializable] | |
public class MyComponentData | |
{ | |
public Vector3 pos; | |
public string name; | |
} | |
public class MyComponent : MonoBehaviour | |
{ |
NewerOlder