本文整理汇总了C#中Sprite.SetDrawLayer方法的典型用法代码示例。如果您正苦于以下问题:C# Sprite.SetDrawLayer方法的具体用法?C# Sprite.SetDrawLayer怎么用?C# Sprite.SetDrawLayer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sprite
的用法示例。
在下文中一共展示了Sprite.SetDrawLayer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
// Use this for initialization
void Start()
{
GameObject refObj = GameObject.Find( "SPM_Filter" );
Manager = (SpriteManager)refObj.GetComponent( typeof(SpriteManager) );
Filter = Manager.AddSprite( gameObject, 4,4,0,0,4,4, false );
Filter.offset = new Vector3(240.0f, -400.0f, 0);
Filter.SetDrawLayer( 5 );
Filter.SetSizeXY( 500, 820 );
Debug.Log("FilterOn");
}
示例2: Start
// Use this for initialization
void Start()
{
GameObject refObj = GameObject.Find("Filter_MNG");
Manager = (SpriteManager)refObj.GetComponent( typeof(SpriteManager));
Filter = Manager.AddSprite( gameObject , 4, 4, 0 , 0 , 4, 4, false );
Filter.offset = new Vector3( Screen.width / 2 , Screen.height / 2 , -2 );
Filter.SetDrawLayer( 5 );
Filter.SetSizeXY( Screen.width * 10, Screen.height * 10);
alphe = 0.0f;
Awake();
setAlphe();
//SOUND
if(type == TYPE_MENU)
{
GameObject seObj = (GameObject)Resources.Load("Sound/sound_se_Menu");
GameObject obj = (GameObject)Instantiate( seObj );
}
}