Example #1
0
        void Start()
        {
            Initialize();

            SetMaterialColors(GameDirector.RandomColor());

            StartCoroutine(MoveCameraTargetIn());
        }
Example #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());
        }
Example #3
0
        protected void Hide()
        {
            gameObject.SetActive(false);

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