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 UnityEngine.EventSystems; | |
| using UnityEngine; | |
| public class Stem : MonoBehaviour, IPointerDownHandler, IBeginDragHandler, IDragHandler, IEndDragHandler, IPointerClickHandler | |
| { | |
| Vector3 _pos; | |
| Vector3 _posOffset; | |
| RectTransform _thisRectTransform; | |
| RectTransform _parentRectTransform; | |
| Rigidbody2D _rb; |
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 System.Collections.Generic; | |
| using UnityEngine; | |
| public class DragRigidbody : MonoBehaviour { | |
| Vector3 screenPoint; | |
| Vector3 offset; | |
| void Update () { |
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 UnityEngine; | |
| using System.Collections; | |
| using UnityEngine.UI; | |
| using DG.Tweening; | |
| using UnityEngine.EventSystems; | |
| public class SettingsPanel : MonoBehaviour { | |
| RectTransform _aRect; | |
| bool _isHidden = true; |
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 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(); |
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.Generic; | |
| using UnityEngine; | |
| public class SpritesController : MonoBehaviour { | |
| public SpriteRenderer[] _sprites; | |
| List<Animator> _anims = new List<Animator>(); | |
| AnimatorStateInfo _stateInfo; | |
| int _animAudioTrack1HashActive; |
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
| void Checker (int i) | |
| { | |
| if (_silenceSprites[i].enabled != true) | |
| { | |
| _silenceSprites[i].enabled = true; | |
| } | |
| else | |
| { | |
| _silenceSprites[i].enabled = false; | |
| } |
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
| 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 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 System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.EventSystems; | |
| using UnityEngine.UI; | |
| public class Events : MonoBehaviour/*, IPointerUpHandler, IPointerEnterHandler, IPointerClickHandler*/ | |
| { | |
| void Start() | |
| { |
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 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 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
| [[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 |