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
public static class ExtensionTools | |
{ | |
private static void ScanPeak(float[] arr, int length, float[] pvlst) | |
{ | |
for (int i = 1; i < length - 1; i++) | |
{ | |
if ((arr[i] < arr[i - 1]) && (arr[i] < arr[i + 1])) | |
{ | |
pvlst[i] = -1; | |
} |
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; | |
public class DontDestroyOnLoadController<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
public static T Instance; | |
private object _lock = new object(); | |
protected virtual void Awake() | |
{ |
NewerOlder