Search Unity

Question scripts to work together

Discussion in 'Scripting' started by lidas5012, Oct 18, 2020.

  1. lidas5012

    lidas5012

    Joined:
    Oct 11, 2020
    Posts:
    5
    for example i have 2 scrpts.
    1 with a class (monster) with fuctions inside
    and in the other i want to activate fuction of the class

    mon1.func();

    how do i get the func() to show up after i write the "mon1."
    using visual studio

    also key words are not suggested to me like i see it does for others in videos.
    for example: [SerializeField] , ScriptableObject..
     
    Last edited: Oct 18, 2020
  2. orionsyndrome

    orionsyndrome

    Joined:
    May 4, 2014
    Posts:
    3,110
    can you share what you have so far? (it's hard to imagine, help us help you)
    see this topic on how to present your code here properly
     
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    You may be able to fix this following the steps here: VS IntelliSense fix
     
  4. orionsyndrome

    orionsyndrome

    Joined:
    May 4, 2014
    Posts:
    3,110
    ah, great, I didn't understand this question AT ALL
     
  5. lidas5012

    lidas5012

    Joined:
    Oct 11, 2020
    Posts:
    5
    fixed it. thanks