コード例 #1
0
ファイル: AFormula.cs プロジェクト: AlKoulounil/GBG
		public void SetSelfBeing (ABeing _self)
		{
			Debug.Assert (mIsInitialized, 
				"Calling SetSelfBeing on a non-initialized formula on component " + Error.Hierarchy(mParent.GetComponent()));
			mSelf = _self;

			foreach (Parameter p in mParameters.Values) {
				if (p.beingKey == BEING_KEY.SELF) {
					if (_self == null) {
						p.bindedValue = null;
					} else {
						p.bindedValue = _self.GetValue (p.valueName);
					}
				}
			}
		}