void MoveToGoji() { GojiMovement goji = GameObject.FindObjectOfType <GojiMovement>(); if (goji != null) { goji.init(); } boxManager.resetAllBox(); timeManager.reset(); MovePlayerToGojiPoint(); gameState = GameState.GojiFight; GameStart = true; }
public void InitBoss(GojiMovement goji) { gj = goji; Progress[0].maxValue = goji.movement.MaxHp; Progress[0].value = goji.movement.hp; }