예제 #1
0
    // Use this for initialization
    void Start()
    {
        playerObject = GameObject.FindGameObjectWithTag("Player");
        player       = playerObject.GetComponent <PlayerBehaviour>();
        boss         = GameObject.FindGameObjectWithTag("Boss").GetComponent <BossBehaviourBase>();

        platforms = GameObject.FindGameObjectsWithTag("Platform");
        startTime = Time.time;
        UpdatePlayerClosestPlatform();
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     player1   = InitPlayerHUD(GameObject.FindGameObjectWithTag("Player"), transform.Find("Player1"));
     boss      = GameObject.FindGameObjectWithTag("Boss").GetComponent <BossBehaviourBase>();
     bossImage = transform.Find("Boss").GetComponent <Image>();
 }