コード例 #1
0
    void Awake()
    {
        //animator = GetComponent<Animator>();
        //healthBarObject = GetComponent<GameObject>();
        healthBar = healthBarObject.GetComponent <healthBar>();
        //laser = GetComponent<GameObject>();
        laserRB    = laser.GetComponent <Rigidbody2D>();
        laserPoint = GameObject.Find("LaserPoint");

        laserScript = laser.GetComponent <laser>();
        player      = GameObject.Find("PlayerPivot");

        healthBarObject.SetActive(false);

        anubisRoar = GetComponent <AudioSource>();

        RageMetre = GameObject.Find("RageMeter");

        rageMetreScript = RageMetre.GetComponent <rageMeterScript>();

        areaAttack.SetActive(false);

        laserEye.SetActive(false);

        areaAttacks.SetActive(false);

        //areaAttack = GetComponent<GameObject>();
        //laserScript.enabled = false;

        health = RageMetre.transform.localScale.x;

        RageMetre.SetActive(false);
    }
コード例 #2
0
 void Awake()
 {
     rageMeter       = GameObject.Find("RageMeter");
     rageMeterScript = rageMeter.GetComponent <rageMeterScript>();
     player          = GameObject.Find("PlayerPivot");
     playerScript    = player.GetComponent <playerController>();
     animator        = GetComponent <Animator>();
 }
コード例 #3
0
    void Awake()
    {
        rageMeter       = GameObject.Find("RageMeter");
        rageMeterScript = rageMeter.GetComponent <rageMeterScript>();
        player          = GameObject.Find("PlayerPivot");

        playerScript = player.GetComponent <playerController>();
        animator     = GetComponent <Animator>();
        target       = GameObject.FindGameObjectWithTag("Player").transform;
    }
コード例 #4
0
 void Awake()
 {
     rageMeter       = GameObject.Find("RageMeter");
     rageMeterScript = rageMeter.GetComponent <rageMeterScript>();
     animator        = GetComponent <Animator>();
 }