Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            path        = Environment.CurrentDirectory;
            bean.handle = this.Handle;
            bean.bc     = new SolidBrush(this.BackColor);
            string be = path + @"\data\btm.png";

            bean.btm = new Bitmap(be);
            bb       = new bean();
        }
Example #2
0
    private void OnCollisionEnter(Collision collision)
    {
        GameObject other = collision.gameObject;

        if (other.name == "player")
        {
            bean    bean  = Instantiate(beanP);
            Vector3 diff  = transform.position - other.transform.position;
            Vector3 place = transform.position + diff;
            bean.transform.position = place;
        }
    }