// Use this for initialization public void Start() { BluePlace = GameObject.Find("BluePlace"); RedPlace = GameObject.Find("RedPlace"); MyTeam = gameObject.GetComponent <Playerteam>(); BlueSpawn = GameObject.Find("BlueSpawn"); RedSpawn = GameObject.Find("RedSpawn"); RpcRespawn(); Spawn = GameObject.Find("DeathPlace").GetComponent <DelayedStart>(); //RpcDie(); Spawn.DelayStart = Time.time; }
private void Start() { _instance = this; anim = GetComponent <Animator>(); //PlayAnim(); }
// Start is called before the first frame update void Start() { _delayedStart = _startMusic.GetComponent <DelayedStart>(); _delayedStart1 = _startMusic1.GetComponent <DelayedStart>(); }