Example #1
0
    private bool GF_espera;                 //GF está esperando que o player interaja


    // Use this for initialization
    void Start()
    {
        happyBar      = gfFrame.GetComponentsInChildren <Image>();
        gfManager     = FindObjectOfType <GFManager>();
        telController = FindObjectOfType <TelephoneController>();
        objetos       = FindObjectOfType <ObjectsPlaces>();
        player        = FindObjectOfType <PlayerController>();
        escada1       = FindObjectOfType <ClimbUpStairs>();
        escada2       = FindObjectOfType <ClimbDownStairs>();
        emotes        = GetComponentInChildren <EmotesController>();
        //Define o começo;
        begin = Time.time;
        //Define o Happy
        Happy = Random.Range(45, 65);
        //Marca a Posição Inicial
        startMarker    = this.transform.position;
        oldStartMarker = startMarker;

        //Verifica o Andar
        if (startMarker.y >= 0.5f && startMarker.y <= 2f)
        {
            AndarGF = 1;
        }
        else
        {
            AndarGF = 2;
        }
        oldAndar = AndarGF;
    }
Example #2
0
    private int actualNumOfGF = 0;          // Quantidade de namoradas a + na tela

    // Use this for initialization
    void Start()
    {
        soundController = FindObjectOfType <SoundController>();
        sceneController = FindObjectOfType <SceneController>();
        tel             = FindObjectOfType <TelephoneController>();

        //girlfriends = new List<GF>();
        UpdateGF();

        /*foreach (var iten in gf)
         * {
         *  girlfriends.Add(iten);
         * }*/
        InvokeRepeating("CommandAction", actionStartTime, actionRepeatTime);
        InvokeRepeating("Spawn", spawnTime, spawnTime);
    }
Example #3
0
 public void ShowTelephoneView()
 {
     HideAll();
     if (_telephoneController == null)
     {
         var view = InstantiateView <TelephoneView>("Phone/Prefabs/TelephoneView");
         _telephoneController      = new TelephoneController();
         _telephoneController.View = (TelephoneView)view;
         RegisterController(_telephoneController);
         _telephoneController.Start();
     }
     else
     {
         _telephoneController.Show();
         _telephoneController.Refresh();
     }
     ShowBackBtn();
 }
Example #4
0
 protected TestBase()
 {
     _repository = Substitute.For <IRepository <TelephoneNumber> >();
     _logger     = Substitute.For <ILogger <TelephoneController> >();
     _sut        = new TelephoneController(_repository, _logger);
 }