public void Drop() { CTFGameManager Manager = GameObject.Find ("CTFGameManager").GetComponent<CTFGameManager>(); Destroy (GameObject.FindGameObjectWithTag ("Flag")); Manager.SpawnFlag(); }
// Use this for initialization void Start() { if (isLocalPlayer) { m_readyText = FindObjectOfType <CTFGameManager> ().m_ready; manager = FindObjectOfType <CTFGameManager> (); //m_readyText.text = " Not ready"; } }
// Use this for initialization void Start() { manager = FindObjectOfType <CTFGameManager> (); m_rb = GetComponent <Rigidbody>(); //Debug.Log("Start()"); TrailRenderer tr = GetComponent <TrailRenderer>(); tr.enabled = false; }
void Awake() { _instance = this; }
private void Start() { //get text and game logic scoreText = GetComponent <Text>(); gameLogic = FindObjectOfType <CTFGameManager>(); }
private void Awake() { _instance = this; }
public void Awake() { _instace = this; }
void Start() { GameManager = GameObject.FindGameObjectWithTag("GameManger").GetComponent <CTFGameManager>(); }
public void CmdGetPlayerNum() { playerNum = CTFGameManager.AssignPlayerNum(); }