// 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;
    }
示例#2
0
 private void Start()
 {
     _instance = this;
     anim      = GetComponent <Animator>();
     //PlayAnim();
 }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     _delayedStart  = _startMusic.GetComponent <DelayedStart>();
     _delayedStart1 = _startMusic1.GetComponent <DelayedStart>();
 }