Exemplo n.º 1
0
		// Use this for initialization
		void Start () {
			nbOfLuciolesChecked = 0;

			onLuciolesCheck = new LuciolesEventManager.LuciolesEvent (OnLuciolesCheck);
			LuciolesEventManager.LuciolesCheck += onLuciolesCheck;

			onLuciolesLightened = new LuciolesEventManager.LuciolesEvent (OnLuciolesLightened);
			LuciolesEventManager.LuciolesLightened += onLuciolesLightened;
		}
Exemplo n.º 2
0
		// Use this for initialization
		void Start () {
			animator = this.GetComponent<Animator>();
			initialScale = this.gameObject.transform.localScale;

			state = STATE_PROFILE_WALK_SAD;

			this.gameObject.transform.localScale = new Vector3 (-initialScale.x, initialScale.y, initialScale.z);;

			Hashtable ht = new Hashtable ();
			ht.Add ("position", new Vector3(moveToX,moveToY, 0f));
			ht.Add ("time", duration);
			ht.Add ("easetype", iTween.EaseType.linear);
			ht.Add ("oncomplete", "OnAnimationComplete");
			ht.Add ("oncompletetarget", this.gameObject);
			iTween.MoveTo(gameObject, ht);

			onLuciolesLightened = new LuciolesEventManager.LuciolesEvent (OnLuciolesLightened);
			LuciolesEventManager.LuciolesLightened += onLuciolesLightened;
		}