Advertisement
Guest User

Interactor.cs

a guest
Apr 29th, 2019
2,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Interactor : MonoBehaviour
  6. {  
  7.     [SerializeField]
  8.     float radius;
  9.  
  10.     // Update is called once per frame
  11.     void Update()
  12.     {
  13.         Shader.SetGlobalVector("_Position", transform.position);
  14.         Shader.SetGlobalFloat("_Radius", radius);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement