This file contains 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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class UiDocumentManager : MonoBehaviour | |
{ | |
UIDocument _uiDocument; | |
[SerializeField] | |
string _visualElementName, _scrollViewName, _ProgressBarName, _bpmLabelName; |
This file contains 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 UnityEngine; | |
using System; | |
[Serializable] | |
public enum DriveType | |
{ | |
RearWheelDrive, | |
FrontWheelDrive, | |
AllWheelDrive | |
} |
This file contains 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 System.Collections.Generic; | |
using UnityEngine; | |
[CreateAssetMenu(menuName = "KIDpedia Data")] | |
public class KIDpediaData : ScriptableObject | |
{ | |
[Header("Language selector")] | |
public KIDpediaLanguage _selectedLanguage; | |
SystemLanguage _selectedSystemLanguage = SystemLanguage.English; |
This file contains 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
[[2, 37], [1, 40], [3, 39], [0, 36]].sort(([,a],[,b]) => { | |
count; | |
console.log(count + " a: " + a + ", b: " + b); | |
count++; | |
return a-b}) | |
/* | |
0 a: 40, b: 37 | |
1 a: 39, b: 40 |
This file contains 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 System.Collections.Generic; | |
using UnityEngine; | |
using System.IO; | |
using System.Text; | |
using System.Collections.Generic; | |
public class FindDuplicates : MonoBehaviour | |
{ | |
List<string> results = new List<string>(); |
This file contains 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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
public class Events : MonoBehaviour/*, IPointerUpHandler, IPointerEnterHandler, IPointerClickHandler*/ | |
{ | |
void Start() | |
{ |
This file contains 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
static int[] usernameDisparity(string[] inputs) | |
{ | |
// store results | |
int[] result = new int[inputs.Length]; | |
// store results for array | |
List<int> resultInt = new List<int>(); | |
for (int i = 0; i < inputs.Length; i++) | |
{ |
This file contains 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
void Checker (int i) | |
{ | |
if (_silenceSprites[i].enabled != true) | |
{ | |
_silenceSprites[i].enabled = true; | |
} | |
else | |
{ | |
_silenceSprites[i].enabled = false; | |
} |
This file contains 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.Generic; | |
using UnityEngine; | |
public class SpritesController : MonoBehaviour { | |
public SpriteRenderer[] _sprites; | |
List<Animator> _anims = new List<Animator>(); | |
AnimatorStateInfo _stateInfo; | |
int _animAudioTrack1HashActive; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using System; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.IO; | |
// set these so purchase is fulfilled or fails | |
// OnPurchaseComplete > FullAppUnlock () | |
// OnPurchaseFailed > ParentalGate.FailPurchase(); |
NewerOlder