#SebiAlpha learning corner.
1 messages · Page 1 of 1 (latest)
but as i was saying, yes its simple as NameOfFunction () ;
as long as the function is within the same script..
if u have another script and a reference to it.. you can do the same to call functions outside the script
myOtherScript.FunctionFromThatScript();
theres going to be alot of more stuff i would need to add tho
as long as its public void
i forgot that C# wasnt that hard
most of the basic stuff is pretty easy
and has been done soo many times that its easy to find online
if u get into more advanced stuff its a bit harder.. for stuff like that
you just find bits and pieces that work for you and combine them
like one person instead of using the button component they made it so if the mouse is hovering over the img its being detected then if the mouse is being clicked it would be well called on
which is stupid if u ask me
well, theres always many many ways to do the same thing..
yeah but overcomplicating a simple task is stupid
that may work for that person.. for example if you want the button to do something during different states..
Hover -> Highlight Button
Click -> UnHighlight Button / Do some function in code
UnHover -> UnHighlight Button
but even for that all that can be done inside the inspector using EventTrigger component
this could be done for cases you dont want to use a button