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