public virtual void Appear(MseSceneObjAppear objAppear) { UID = objAppear.uid; setPos(objAppear.x / SCALE, objAppear.y / SCALE); setDegree(objAppear.degree); degreeSpeed = objAppear.degreeSpeed; speed = objAppear.speed; }
private void createUser(MseSceneObjAppear objAppear) { String uid = objAppear.uid; var newUser = Instantiate(userPrefab); // newUser.transform.parent = userParentObj.transform; var userNode = newUser.GetComponent <UserNode>(); Assert.IsNotNull(userNode); userNode.Appear(objAppear); userNodeDic.Add(uid, userNode); }