Пример #1
0
void fadeeverything()
{
	for(int j=1;j<=7;j+=2)
	{
		fadeit=GameObject.Find("FadePlayer"+j.ToString());
			WallScript wallsc2 = fadeit.GetComponent<WallScript>();
		FaderScript fadescript = fadeit.GetComponent<FaderScript>();
			Debug.Log ("ID: "+wallsc2.id.ToString()+" owner: "+wallsc2.owner.ToString());
		fadescript.TotalFade();
	}
}