void Start() { audioSource = FindObjectOfType <AudioSource>(); TF = FindObjectOfType <TransformFunctions>(); powerUpManager = FindObjectOfType <PowerUpManager>(); targetScale = GameObject.Find("ZeroScale").transform; }
public string Decode(string signature, bool isUrlDecoded = false) { var urlDecodedSignature = (isUrlDecoded) ? signature : HttpUtility.UrlDecode(signature); return(TransformFunctions.Aggregate( urlDecodedSignature.ToCharArray(), (signatureArray, transformFunction) => CipherFunctions[transformFunction.Name](signatureArray, transformFunction.Arg), decipheredSignature => new string(decipheredSignature))); }
void Singleton() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } }
void Awake() { TF = FindObjectOfType <TransformFunctions>(); }
// Use this for initialization void Start() { TF = this.GetComponent <TransformFunctions>(); }
private void Start() { _transformFunctions = TransformFunctions.Instance; }