コード例 #1
0
ファイル: CSpriteLevel.cs プロジェクト: zhilianghuang/Fishing
    //-------------------------------------------------------------------------
    StillSprite _loadRippleStillSprite()
    {
        UnityEngine.Object prefab_object = Resources.Load("Game/Background/water_ani_movePrefab");
        GameObject         game_object   = GameObject.Instantiate(prefab_object) as GameObject;
        StillSprite        still_sprite  = game_object.GetComponent <StillSprite>();

        still_sprite.init(mScene);

#if UNITY_EDITOR
        still_sprite.gameObject.name = "TkSprite_Water_Wave";
        mTKGameObject = GameObject.Find("TKGameObject");
        still_sprite.transform.parent = mTKGameObject.transform;
        //still_sprite.transform.localScale = new Vector3(2.34f, 2.34f, 1);
#endif

        return(still_sprite);
    }