I badly know C# and OOP, how to change color of instantiated object? Could you tell me? This way I can not do it:
using UnityEngine;
using System.Collections;
public class Spawn : MonoBehaviour {
public GameObject Сube;
void Start () {
Instantiate(Сube, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);
Cube.GetComponent<Renderer>().material.color = Color.blue;
}
}