Exemple #1
0
    // Use this for initialization
    void Start()
    {
        arrow    = GameObject.Find("ArrowPivot");
        _3dSword = GameObject.Find("3DBlade");
        _3dPivot = GameObject.Find("3DPivot");

        rb = GetComponent <Rigidbody>();

        //exclamationPoint is Sprite's child
        exclamationPoint = this.gameObject.transform.GetChild(0).GetChild(1).gameObject;
        exclamationPoint.SetActive(false);

        health = maxHealth;
        hp     = GameObject.FindGameObjectWithTag("HP").GetComponent <Image>();
        SetHealthAmount();

        cosmicPower = maxCP;
        cp          = GameObject.FindGameObjectWithTag("CP").GetComponent <Image>();
        SetCosmicPowerAmount();

        emiNumber = 0;
        SetEmiAmount();

        emi = (Emi)AssetDatabase.LoadAssetAtPath("Assets/Prefab/Drops/1Emi.prefab", typeof(Emi));

        eQ = FindObjectOfType <EquipLoaded>();

        nMA = GetComponent <NavMeshAgent>();

        mM = FindObjectOfType <MenuManager>();
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        equiped = zEquips.nothing;

        eload    = FindObjectOfType <EquipLoaded>();
        equipGet = FindObjectOfType <EquipGet>();

        transform.position = equipLayout[0].position;
    }