Skip to content
Snippets Groups Projects
Commit 43e43e08 authored by Daniel Egiant Sitanggang's avatar Daniel Egiant Sitanggang
Browse files

Merge branch 'feat/pet' into 'main'

Feat/pet

See merge request !49
parents 599db756 2be88a81
1 merge request!49Feat/pet
......@@ -125,7 +125,7 @@ AnimatorStateTransition:
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.5442685
m_TransitionOffset: 0.84050137
m_TransitionOffset: 0.57353204
m_ExitTime: 0.31502604
m_HasExitTime: 1
m_HasFixedDuration: 1
......@@ -149,9 +149,9 @@ AnimatorStateTransition:
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25179565
m_TransitionOffset: 1.3310483
m_ExitTime: 0.06373558
m_TransitionDuration: 0.5448116
m_TransitionOffset: 1.3834875
m_ExitTime: 0.07568686
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
......
......@@ -125,7 +125,9 @@ public class ShopManager : MonoBehaviour {
}
playerCurrency.subtract(healingPetPrice);
GameObject pet = Instantiate(healingPet, player.position, Quaternion.identity);
pet.transform.SetParent(player, false);
pet.transform.SetParent(player, true);
pet.transform.SetParent(null, true);
}
public void SpawnAttackingPet()
......@@ -135,8 +137,8 @@ public class ShopManager : MonoBehaviour {
}
playerCurrency.subtract(attackingPetPrice);
GameObject pet = Instantiate(attackingPet, player.position, Quaternion.identity);
pet.transform.SetParent(player, false);
}
pet.transform.SetParent(player, true);
pet.transform.SetParent(null, true); }
public void setAccessible(bool value)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment