コード例 #1
0
    // Use this for initialization
    void Start()
    {
        line         = gameObject.GetComponent <LineRenderer>();
        line.enabled = false;
        renderer     = gameObject.GetComponent <Renderer>();
        gameObject.GetComponent <Light>().enabled = false;
        ps             = gameObject.GetComponent <ParticleSystem>();
        light          = gameObject.GetComponent <Light>();
        weaponSelectUI = GameObject.FindWithTag("GunController").GetComponent <WeaponSelectUI>();

        em         = ps.emission;
        em.enabled = false;
    }
コード例 #2
0
    void Start()
    {
        infoPanel.SetActive(false);

        weaponUI = weaponPanel.GetComponent <WeaponSelectUI>();
    }