Example #1
0
 private void OnStartBankButton()
 {
     m_WorldManager.startBankButton.gameObject.SetActive(false);
     m_ThiefPathfindingAgent.transform.parent        = m_WorldManager.levelBank.transform;
     m_ThiefPathfindingAgent.transform.localPosition = m_WorldManager.bankStartPosition.localPosition;
     m_ThiefPathfindingAgent.pathfindingManager      = m_ThiefPathfindingAgent.GetComponentInParent <PathfindingManager>();
     levelIndex = LevelIndex.Bank;
     m_Thief.ResetThief();
     m_GameTimer.StartTimer(45.0f);
     m_Thief.gameObject.SetActive(true);
 }