예제 #1
0
    public void new_bullet_RPC(int view_id, bool first, int layer)
    {
        GameObject new_bullet = PhotonView.Find(view_id).gameObject;

        if (first)
        {
            manager.follow_bullet(new_bullet);
            bullet_script.init();
            //todo timer stop
            m_timer.stop_timer();
        }
        new_bullet.transform.parent = the_game.transform;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     game_manager = GameObject.Find("the game").GetComponent <manager_script>();
     game_manager.follow_bullet(this.gameObject);
 }