void Awake() { _Instance = this; tween = GetComponent <TweenPosition>(); headSprite = transform.Find("HeadSprite").GetComponent <UISprite>(); desLabel = transform.Find("DesLabel").GetComponent <UILabel>(); }
void Awake() { _instance = this; }
// Use this for initialization void Start() { //单例模式赋值 _instance = this; }
private void Awake() { _instance = this; doAnim = this.GetComponent <DOTweenAnimation>(); npcTalkText = transform.Find("Text").GetComponent <Text>(); }
private void Awake() { _instance = this; }