示例#1
0
 // Use this for initialization
 void Start()
 {
     //   spawned = false;
     //  ms_skull_mat = ms_skull.GetComponent<Material>();
     animator = skull_ob.GetComponent<Animator>();
     asource = this.GetComponent<AudioSource>();
     this.name = "ball";
     this.transform.position = GameObject.Find("pause_position").transform.position;
     rd = this.GetComponent<Rigidbody>();
     init_rot = rd.rotation;
     hits = 0;
     carried_by = vars.player_id.none;
     carried_by_last_frame = vars.player_id.none;
     particles = particle_holder.GetComponent<ParticleSystem>();
     p1pc = player1_scrpit_obj.GetComponent<adv_playercontroller>();
     p2pc = player2_scrpit_obj.GetComponent<adv_playercontroller>();
     p3pc = player3_scrpit_obj.GetComponent<adv_playercontroller>();
     p4pc = player4_scrpit_obj.GetComponent<adv_playercontroller>();
     rotate_font();
     set_to_pause_pos();
 }
    // Use this for initialization
    void Start()
    {
        rd = this.GetComponent<Rigidbody>();

        adv = this.adv_script_holder.GetComponent<adv_playercontroller>();
    }