예제 #1
0
 void Start()
 {
     playerSoulSight = GameObject.FindWithTag("Player").GetComponent <Player_Soulsight>();
     soulEnergyMax   = Player_Soulsight.soulEnergyMax;
     powerUp1.SetActive(false);
     powerUp2.SetActive(false);
     powerUp3.SetActive(false);
 }
예제 #2
0
    //public SpriteRenderer sprite;

    // Start is called before the first frame update
    void Start()
    {
        arrow1.SetActive(false);
        arrow2.SetActive(false);

        player          = GameObject.FindWithTag("Player");
        playerSoulSight = GameObject.FindWithTag("Player").GetComponent <Player_Soulsight>();
        player.GetComponent <Player_Soulsight>().enabled = false;
        canvas = GameObject.FindWithTag("Canvas");
        canvas.SetActive(false);
        playerVFX   = GameObject.FindWithTag("Player").GetComponent <PlayerVFX>();
        boxcollider = GetComponent <BoxCollider2D>();

        orbs        = GameObject.FindWithTag("MemoryOrb");
        soulSetting = GameObject.FindWithTag("Soulsight");
        soulSetting.SetActive(false);
        orbs.active = false;
        //sprite = gameObject.GetComponentInChildren<SpriteRenderer>();
        //arrows = GameObject.FindWithTag("Arrow");
        //arrows.SetActive(false);
    }
예제 #3
0
 void Start()
 {
     playerSoulSight = GameObject.FindWithTag("Player").GetComponent <Player_Soulsight>();
     playerVFX       = GameObject.FindWithTag("Player").GetComponent <PlayerVFX>();
     orbUI.SetActive(false);
 }