public static void Scale(string _uuid, float _x, float _y, float _z, OnErrorDelegate _onError) { GameObject go = ResourceMgr.FindGameObject(_uuid); if (null == go) { _onError(string.Format("{0} is not exists !!!", _uuid)); return; } go.transform.localScale = new Vector3(_x, _y, _z); }
// TO DO public static void SmoothFollow(string _selfUUID, string _targetUUID, float _height, float _heightDamping, float _rotationDamping, OnErrorDelegate _onError) { GameObject self = ResourceMgr.FindGameObject(_selfUUID); if (null == self) { _onError(string.Format("{0} is not exists !!!", _selfUUID)); return; } GameObject target = ResourceMgr.FindGameObject(_targetUUID); if (null == target) { _onError(string.Format("{0} is not exists !!!", _targetUUID)); return; } }