private void Start() { mode = GameObject.Find("Interaction").GetComponent <modeSelector>(); startY = transform.position.y; Renderer renderer = gameObject.GetComponent <Renderer>(); spawnPos = transform.position; spawnRotation = transform.rotation; if (isMovable) { renderer.material = objectMaterial; } else if (!isMovable) { renderer.material = materialImmovable; } else { return; } }
private void Start() { mode = GameObject.Find("Interaction").GetComponent <modeSelector>(); startRotation = transform.localRotation; }
private void Start() { mode = GameObject.Find("Interaction").GetComponent <modeSelector>(); }