Example #1
0
    //生成処理時の初期設定
    void InstantiateInit(int i, string str)
    {
        GameObject MP;

        MP = Instantiate(MandPrefab);
        MP.GetComponent <Rigidbody2D>().bodyType = RigidbodyType2D.Kinematic;
        MP.transform.position    = new Vector3(GPos[i].x, GPos[i].y, GPos[i].z);
        MP.transform.eulerAngles = new Vector3(0, 0, 0);
        MP.name = MandName[i];
    }