示例#1
0
 void Start()
 {
     m_BattleAnimation = animator.GetComponent <BattleAnimationController>();
     //GameObject model = Instantiate(PlayerPrefabHolder.instance.playerModelPrefab01, transform.position, transform.rotation, visual);
     //animator = model.GetComponent<Animator>();
     //SetHPBar();
 }
 void OnLoad(Scene scene, LoadSceneMode mode)
 {
     battleAnim = GetComponent <BattleAnimationController>();
     audioFX    = gameObject.GetComponent <AudioSource>();
     // Save the current progress of the player
     SetupStage();
     StartCoroutine(SetupGame());
 }