Esempio n. 1
0
    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)));
        }
Esempio n. 3
0
 void Singleton()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Esempio n. 4
0
 void Awake()
 {
     TF = FindObjectOfType <TransformFunctions>();
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     TF = this.GetComponent <TransformFunctions>();
 }
Esempio n. 6
0
 private void Start()
 {
     _transformFunctions = TransformFunctions.Instance;
 }