Ejemplo n.º 1
0
    void Awake()
    {
        _Instance = this;

        tween = GetComponent <TweenPosition>();

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