Exemplo n.º 1
0
 private void Start()
 {
     DayController.DayHasCome   += DayController_DayHasCome;
     DayController.NightHasCome += DayController_NightHasCome;
     circleCollider              = GetComponent <CircleCollider2D>();
     randomWalking = GetComponent <NpsAIRandomWalking>();
 }
Exemplo n.º 2
0
 private void Start()
 {
     LevelTrust = levelTrustStatic[(int)Proffesion];
     dialogNum  = dialogNumStatic[(int)Proffesion];
     dialogSets = DialogData.instance.GetDialogSet(Proffesion);
     DayController.DayHasCome   += DayController_DayHasCome;
     DayController.NightHasCome += DayController_NightHasCome;
     buttonToDialog              = transform.GetChild(0).gameObject;
     cloud         = buttonToDialog.GetComponent <ClickController>();
     randomWalking = GetComponent <NpsAIRandomWalking>();
     if (dialogSets != null)
     {
         if (dialogNum + 1 == dialogSets[LevelTrust].Dialogs.Length)
         {
             if (LevelTrust == dialogSets.Length - 1)
             {
                 buttonToDialog.SetActive(false);
             }
         }
     }
     else
     {
         cloud.gameObject.SetActive(false);
     }
 }