Esempio n. 1
0
 void Start()
 {
     spaceCraft       = GameObject.Find("SpaceCraft");
     spaceCraftAnchor = GameObject.Find("SpaceCraftAnchor");
     rbdAnchor        = spaceCraftAnchor.GetComponent <Rigidbody>();
     attribute        = spaceCraft.GetComponent <attributeDefiner>();
     updateMethod     = spaceCraft.GetComponent <updateMethods>();
 }
Esempio n. 2
0
 void Start()
 {
     line             = gameObject.GetComponent <LineRenderer>();
     line.enabled     = false;
     Cursor.lockState = CursorLockMode.Locked;
     attribute        = Craft.GetComponent <attributeDefiner>();
     updateMethod     = Craft.GetComponent <updateMethods>();
 }