23 lines
		
	
	
		
			425 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			425 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using UnityEngine;
 | 
						|
 | 
						|
[Serializable]
 | 
						|
public class FloorController : MonoBehaviour
 | 
						|
{
 | 
						|
	public WhirldObject whirldObject;
 | 
						|
	public GameObject floorObject;
 | 
						|
 | 
						|
	public void OnSceneGenerated()
 | 
						|
    {
 | 
						|
		if (
 | 
						|
			!whirldObject ||
 | 
						|
			whirldObject.parameters["Texture"] == null ||
 | 
						|
			!floorObject
 | 
						|
		)
 | 
						|
        {
 | 
						|
			return;
 | 
						|
		}
 | 
						|
 | 
						|
        floorObject.renderer.material.mainTexture = (Texture)whirldObject.parameters["Texture"];
 | 
						|
	}
 | 
						|
} |