コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     camera     = GetComponent <Camera>();
     unitselect = GetComponent <SelectUNIT>();
 }
コード例 #2
0
ファイル: CreateUnit.cs プロジェクト: EnvyingGolem47/Petya
 // Start is called before the first frame update
 void Start()
 {
     soldierspawnpoint = gameObject.transform;
     slunit            = FindObjectOfType <SelectUNIT>().GetComponent <SelectUNIT>();
     manager           = FindObjectOfType <ManagerScript>().GetComponent <ManagerScript>();
 }