// Start is called before the first frame update void Start() { isSelectedComputer = new IsSelectedComputer(gameObject, baseSelectionOnOrientationOf); rigidbodyToApplyForceTo = applyForceTo.GetComponent <Rigidbody>(); }
// Start is called before the first frame update void Start() { myMaterial = GetComponent <MeshRenderer>().material; originalColor = myMaterial.color; isSelectedComputer = new IsSelectedComputer(gameObject, baseSelectionOnOrientationOf); }