//------------------------------------------------- void Awake() { if (linearMapping == null) { linearMapping = GetComponent <LinearMapping_project>(); } }
protected virtual void Start() { if (linearMapping == null) { linearMapping = GetComponent <LinearMapping_project>(); } if (linearMapping == null) { linearMapping = gameObject.AddComponent <LinearMapping_project>(); } initialMappingOffset = linearMapping.value; if (repositionGameObject) { UpdateLinearMapping(transform); } }