Пример #1
0
    void Awake()
    {
        _Instance = this;

        tween = GetComponent <TweenPosition>();

        headSprite = transform.Find("HeadSprite").GetComponent <UISprite>();
        desLabel   = transform.Find("DesLabel").GetComponent <UILabel>();
    }
Пример #2
0
 void Awake()
 {
     _instance = this;
 }
Пример #3
0
	void Awake()
	{
		_instance = this;
	}
Пример #4
0
 // Use this for initialization
 void Start()
 {
     //单例模式赋值
     _instance = this;
 }
Пример #5
0
 private void Awake()
 {
     _instance   = this;
     doAnim      = this.GetComponent <DOTweenAnimation>();
     npcTalkText = transform.Find("Text").GetComponent <Text>();
 }
Пример #6
0
    private void Awake()
    {
	    _instance = this;
    }