상속: UnityEngine.MonoBehaviour
예제 #1
0
        public void Start()
        {
            if (this.playerCamera == null)
            {
                Debug.LogError("Unable to determine where the Player Camera component is at.");
            }

            if (this.minimapCamera == null)
            {
                Debug.LogError("Unable to determine where the Minimap Camera component is at.");
            }

            if (this.floorCollider == null)
            {
                GameObject floorObject = GameObject.FindGameObjectWithTag("FloorCollider");
                this.floorCollider = floorObject.GetComponent <Collider>();
                if (this.floorCollider == null)
                {
                    Debug.LogError("Cannot set Quad floor collider to this variable. Please check.");
                }
            }

            if (MinimapStuffs.Instance == null)
            {
                MinimapStuffs.Instance = this;
            }
        }
예제 #2
0
        public void Start()
        {
            if (this.playerCamera == null) {
                Debug.LogError("Unable to determine where the Player Camera component is at.");
            }

            if (this.minimapCamera == null) {
                Debug.LogError("Unable to determine where the Minimap Camera component is at.");
            }

            if (this.floorCollider == null) {
                GameObject floorObject = GameObject.FindGameObjectWithTag("FloorCollider");
                this.floorCollider = floorObject.GetComponent<Collider>();
                if (this.floorCollider == null) {
                    Debug.LogError("Cannot set Quad floor collider to this variable. Please check.");
                }
            }

            if (MinimapStuffs.Instance == null) {
                MinimapStuffs.Instance = this;
            }
        }