Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        startbutton       = GameObject.Find("Gamemain").GetComponent <Startbutton>();
        RakusekiIwa       = GameObject.Find("rakuseki_iwa");
        RakusekiIwaScript = RakusekiIwa.GetComponent <RakusekiIwa>();

        BossAttack = GameObject.Find("Boss_walking_R").GetComponent <Animator>();
    }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        MOVE      = 1;
        myAnim    = GetComponent <Animator>();
        ClearAnim = GameObject.Find("Image").GetComponent <Animator>();


        sprite  = GetComponent <SpriteRenderer>();
        this.HP = maxHP;
        if (sliderHP != null)
        {
            sliderHP.value = 1.0f;
        }

        startbutton = GameObject.Find("Gamemain").GetComponent <Startbutton>();

        RakusekiIwa       = GameObject.Find("rakuseki_iwa");
        RakusekiIwaScript = RakusekiIwa.GetComponent <RakusekiIwa>();

        BossWalk = GameObject.Find("Boss_walking_R").GetComponent <Animator>();
    }
Пример #3
0
 private void Start()
 {
     rakuseki = GetComponent <RakusekiIwa>();
     audio    = GetComponent <AudioSource>();
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     RakusekiIwa       = GameObject.Find("rakuseki_iwa");
     RakusekiIwaScript = RakusekiIwa.GetComponent <RakusekiIwa>();
 }