Horje
unity float from another script Code Example
unity float from another script
public GameObject ScriptHolder;
public float Afloat;

//retrieve float every frame
void Update()
{
	Afloat = ScriptHolder.GetComponent<Script>().WantedFloat;
}
get float from others script
	var class1 = GameObject.Find("MyObjectScript").GetComponent<MyClass1>();
    class1.myfloat = 3;




Csharp

Related
how ot make a variable public without showing in the inspector Code Example how ot make a variable public without showing in the inspector Code Example
c# random float between two numbers Code Example c# random float between two numbers Code Example
but dotnet-ef does not exist. Code Example but dotnet-ef does not exist. Code Example
lockstate untiy Code Example lockstate untiy Code Example
dotnet ef install global Code Example dotnet ef install global Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11