public override void AddPet(int uuid, GameObject obj) { BattlefieldObjectPet pet = obj.GetComponent <BattlefieldObjectPet>(); petList[uuid] = pet; obj.transform.SetParent(petBar, false); }
public override void AddPet(int uuid, GameObject obj) { BattlefieldObjectPet pet = obj.GetComponent <BattlefieldObjectPet>(); petList[uuid] = pet; obj.transform.SetParent(petBar, false); // obj.transform.localScale = Vector3.one; // obj.transform.localRotation = Quaternion.identity; UpdatePetPosition(); }