Ejemplo n.º 1
0
        void Start()
        {
            Initialize();

            SetMaterialColors(GameDirector.RandomColor());

            StartCoroutine(MoveCameraTargetIn());
        }
Ejemplo n.º 2
0
        public void Reload()
        {
            StopCoroutine("MoveCameraTargetOut");

            // Restart player position and rotation.
            transform.position = m_playerStartPosition;
            transform.rotation = m_playerStartRotation;

            // Restart target position and rotation.
            m_cameraTarget.localPosition = m_targetStartLocalPosition;
            m_cameraTarget.localRotation = m_targetStartLocalRotation;

            SetMaterialColors(GameDirector.RandomColor());
            HandleComponents(true);

            GameDirector.ResetGame();

            StartCoroutine(MoveCameraTargetIn());
        }
Ejemplo n.º 3
0
        protected void Hide()
        {
            gameObject.SetActive(false);

            m_bodyRenderer.sharedMaterial = GameDirector.RandomColor();
        }
Ejemplo n.º 4
0
 protected virtual void Start()
 {
     m_bodyRenderer = GetComponentInChildren <Renderer>();
     m_bodyRenderer.sharedMaterial = GameDirector.RandomColor();
 }