// Start is called before the first frame update void Start() { instance = this; currentCam = GameObject.FindObjectOfType <CinemachineVirtualCamera>(); shakeVisible = GameObject.FindObjectOfType <CameraShake>(); // ojo aca lastCam = currentCam; }
private void CreateManagers() { LeptonsMgr = new LeptonsManager(); ChrononsMgr = new ChrononsManager(); CamerasMgr = new CamerasManager(); MaterialsMgr = new MaterialsManager(); PhotonsMgr = new PhotonsManager(); Managers.Add(LeptonsMgr); Managers.Add(ChrononsMgr); Managers.Add(PhotonsMgr); Managers.Add(CamerasMgr); Managers.Add(MaterialsMgr); foreach (IAetherManager particleManager in Managers) { if (particleManager is IInitializable) { ((IInitializable)particleManager).Initialize(this); } } return; }
void Start() { _currentDepth = 1; _manager = GameObject.Find("Manager").GetComponent<CamerasManager>(); }
void OnEnable() { script = (CamerasManager)target; }