コード例 #1
0
    void Start()
    {
        birdState = BirdState.idle;
        gameManager = GameObject.FindGameObjectWithTag("GM");
        gameManagerScript = gameManager.GetComponent<GameManagerScript>() as GameManagerScript;
        spriteRenderer = gameObject.GetComponent<SpriteRenderer>();

        gameManagerScript.SetBossName(bossName);
        gameManagerScript.SetHPBar(Health);

        newPos = this.transform.position;
    }