Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     tallying = false;
     total = 0;
     instance = this;
     rectTransform = gameObject.GetComponent<RectTransform> ();
 }
Exemplo n.º 2
0
 // Init
 void Start()
 {
     scoretally      = GameObject.Find("Canvas/Score Panel/Score Text").GetComponent <ScoreTally>();
     perfectAnimator = GameObject.Find("perfect note").GetComponent <Animator>();
     goodAnimator    = GameObject.Find("good note").GetComponent <Animator>();
     badAnimator     = GameObject.Find("bad note").GetComponent <Animator>();
     scoreGame       = GameObject.Find("Player Container").transform.GetChild(0).GetComponent <ScoreGame>();
 }
Exemplo n.º 3
0
    public bool balloonHasScaled = false;                           //creates bool to see if balloon needs to be scaled more

    private void Awake()
    {
        score = FindObjectOfType <ScoreTally>();                     //finds textMeshPro object and defines playerScore
        //if (score)
        //    Debug.Log("Score tally is found!!");                    //debug's whether it is found or not
        //else
        //    Debug.Log("Score tally not found, try again!!");
    }
Exemplo n.º 4
0
        public void TestPredictedOutput()
        {
            var sut = new ScoreTally("2013", "All Teams", true);

            sut.Render();
            var fileOut = sut.FileName();

            Assert.IsTrue(File.Exists(fileOut), string.Format("Cannot find {0}", fileOut));
        }
Exemplo n.º 5
0
        public void ShowCarieer(Career career)
        {
            Career = career;
            var tally = new ScoreTally(career);

            CharacterName.Text = career.Player.Name;
            Score.Text         = $"SCORE {tally.Score}";
            Show();
        }
Exemplo n.º 6
0
        public void TestActualOutput()
        {
            var sut = new ScoreTally("2012", "Actuals", usingPredictions: false);

            sut.ForceRefresh = false;
            sut.Render();
            var fileOut = sut.FileName();

            Assert.IsTrue(File.Exists(fileOut), string.Format("Cannot find {0}", fileOut));
        }
    public override void OnInspectorGUI()
    {
        ScoreTally targetScript = (ScoreTally)target;

        EditorGUI.BeginChangeCheck();
        DrawDefaultInspector();
        EditorGUI.EndChangeCheck();

        if (GUI.changed)
        {
            targetScript.SetCurrentLevel();
        }
    }
Exemplo n.º 8
0
    void Start()
    {
        // Game Object Setup
        canvas = GameObject.Find("Canvas");
        player = GameObject.Find("Player Container").transform.GetChild(0).gameObject;

        multipleAudio = player.GetComponent <MultipleAudio>();
        pauseButton   = canvas.GetComponent <PauseButtonHandler>();
        audioSource   = player.GetComponent <AudioSource>();
        scoreTally    = GameObject.Find("Canvas/Score Panel/Score Text").GetComponent <ScoreTally>();

        // Grab score text
        lowScoreText.text  = getText(score);
        highScoreText.text = getText(score);
    }
Exemplo n.º 9
0
 private void Awake()
 {
     scoreTally = FindObjectOfType <ScoreTally>();
 }
Exemplo n.º 10
0
 private void Awake()
 {
     scoreTally   = FindObjectOfType <ScoreTally>();
     stateMachine = FindObjectOfType <ClickFunctionsStateMachine>();
     playField    = FindObjectOfType <PlayField>().gameObject;
 }