Example #1
0
        public override void AddPet(int uuid, GameObject obj)
        {
            BattlefieldObjectPet pet = obj.GetComponent <BattlefieldObjectPet>();

            petList[uuid] = pet;
            obj.transform.SetParent(petBar, false);
        }
Example #2
0
        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();
        }