コード例 #1
0
ファイル: GradeGreat.cs プロジェクト: tzuyi126/2DPokemon_Go
    // Start is called before the first frame update
    void Start()
    {
        GreatCount = 0;

        gradeNice = GradeNice.GetComponent <GradeNice>();

        HitText.SetActive(false);

        SE = SEgameObject.GetComponent <AudioSource>();
    }
コード例 #2
0
    void Start()
    {
        rb = GetComponent <Rigidbody2D>();

        isPressed = false;

        grading   = Grading.GetComponent <Grading>();
        gradeNice = GradeNice.GetComponent <GradeNice>();

        SE = SEgameObject.GetComponent <AudioSource>();

        power = 0f;
    }
コード例 #3
0
ファイル: Grading.cs プロジェクト: tzuyi126/2DPokemon_Go
    // Start is called before the first frame update
    void Start()
    {
        text = Text.GetComponent <Text>();

        total = 0;

        Canvas2.SetActive(false);

        WinLoseText  = Canvas2.transform.Find("WinLoseText").gameObject.GetComponent <Text>();
        ThrowText    = Canvas2.transform.Find("ThrowText").gameObject.GetComponent <Text>();
        btnNextLevel = Canvas2.transform.Find("NextLevel").gameObject;
        btnNextLevel.SetActive(false);
        btnReplay = Canvas2.transform.Find("Replay").gameObject;
        btnReplay.SetActive(false);

        gradeNice  = GradeNice.GetComponent <GradeNice>();
        gradeGreat = GradeGreat.GetComponent <GradeGreat>();
    }