// Start is called before the first frame update
    void Start()
    {
        instance = this;

        currentCam   = GameObject.FindObjectOfType <CinemachineVirtualCamera>();
        shakeVisible = GameObject.FindObjectOfType <CameraShake>(); // ojo aca

        lastCam = currentCam;
    }
示例#2
0
        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;
        }
示例#3
0
 void Start()
 {
     _currentDepth = 1;
     _manager = GameObject.Find("Manager").GetComponent<CamerasManager>();
 }
示例#4
0
 void OnEnable()
 {
     script = (CamerasManager)target;
 }