Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        instance = this;

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

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