示例#1
0
 // Use this for initialization
 void Start()
 {
     jump  = FindObjectOfType <Jump>();
     Roof  = FindObjectOfType <SpawnRoof>();
     stats = FindObjectOfType <Stats>();
     score = FindObjectOfType <Score>();
     adman = FindObjectOfType <AdManager>();
 }
示例#2
0
文件: Jump.cs 项目: orre1996/GoNuts-
    // Use this for initialization
    void Start()
    {
        Roof         = FindObjectOfType <SpawnRoof>();
        GoTarget     = MoveTarget.topRight;
        score        = FindObjectOfType <Score>();
        Background   = FindObjectOfType <ScrollingBackground>();
        MoveTutorial = FindObjectOfType <MoveTutorialDown>();
        anim         = GetComponent <Animator>();
        cube         = FindObjectsOfType <TutorialCube>();

        anim.speed = 0;

        if (score.DoubleCoins == true)
        {
            DoubleCoinsUI.SetActive(true);
        }
        else
        {
            DoubleCoinsUI.SetActive(false);
        }
    }