| 123456789101112131415161718192021222324252627282930313233343536373839 | /// ProFlares - v1.08 - Copyright 2014-2015 All rights reserved - ProFlares.comusing UnityEngine;using System.Collections;public class SwitchCameraDemo : MonoBehaviour {		public ProFlareBatch flareBatch;		public Camera camera1;	public Camera camera2;		public bool switchNow;		bool ping; 	void Start () {		camera2.enabled = false;	}	 	void Update () {		if(switchNow){					switchNow = false;						if(!ping){				ping = true;				flareBatch.SwitchCamera(camera2);				camera2.enabled = true;				camera1.enabled = false;			}else{				ping = false;				flareBatch.SwitchCamera(camera1);				camera1.enabled = true;				camera2.enabled = false;							} 		} 	}}
 |