コード例 #1
0
    public void SpawnParticle(GameObject obj, Vector3 point, Quaternion q)
    {
        ParticleObj msg = new ParticleObj();

        msg.obj   = obj;
        msg.point = point;
        msg.q     = q;
        m_client.Send(SpawnParticleMsg, msg);
    }
コード例 #2
0
    void Start()
    {
        myGridObj     = this.transform.GetComponentInChildren <GridObj>();
        myParticleObj = this.transform.GetComponentInChildren <ParticleObj>();

        detA.SetRow(0, new Vector4(1f, -0.3f, 0, 0));
        detA.SetRow(1, new Vector4(-0.7f, 0.6f, 0, 0));
        detA.SetRow(2, new Vector4(0, 0, 1, 0));
        detA.SetRow(3, new Vector4(0, 0, 0, 1));
    }