private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }
void awake() { instance = this; }
// Update is called once per frame void Start() { parent = gameObject.GetComponentInParent <platformManager>(); }