SampleItem.cs
304 Bytes
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class SampleItem : MonoBehaviour {
public Button button;
public Text title;
public void StartAnimation()
{
GameObject.FindGameObjectWithTag("inspetor").GetComponent<PlayerManager>().start_local_play(title.text);
}
}