// Use this for initialization
    void Start()
    {
        fo   = GetComponent <FlipOut>();
        proj = GetComponent <Projector>();

        Material mat = new Material(proj.material);

        mat.SetTexture("_ShadowTex", images.pickRandom());
        proj.material = mat;
    }
예제 #2
0
파일: FlipOut.cs 프로젝트: ospna/FlipOut
 void Awake()
 {
     S = this;
 }
예제 #3
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     FlipOut.Begin();
 }
 // Use this for initialization
 void Start()
 {
     fo = GetComponent <FlipOut>();
 }