示例#1
0
 public static void CrossFade(string blender, int index, float speed = 0.3f)
 {
     if (!Check())
     {
         return;
     }
     camc.CrossFade(blender, index, speed);
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Alpha1))
     {
         camCtrl.CrossFade("Test Blender", 0, 0.2f);
     }
     if (Input.GetKeyDown(KeyCode.Alpha2))
     {
         camCtrl.CrossFade("Test Blender", 1, 0.2f);
     }
     if (Input.GetKeyDown(KeyCode.Alpha3))
     {
         camCtrl.CrossFade("Test Blender", 2, 0.2f);
     }
 }