Esempio n. 1
0
		public virtual void AddCharacter (Character newChar)
		{
			while (mCharacters.ContainsKey (newChar.name.ToLower())) {
				newChar.name += "I";
			}
			mCharacters.Add (newChar.name.ToLower(), newChar);
			newChar.transform.SetParent (mGroupComposition);

			if (OnGroupChanged != null) {
				OnGroupChanged ();
			}
		}
Esempio n. 2
0
		void Awake() {
			mTextComponent = GetComponent<Text> ();
			mAttachedCharacter = GetComponentInParent<Character> ();

		}