private void Start() { stylebar = this; UIBar = bar.GetComponent <UISprite>(); UIChain = labelChain.GetComponent <UILabel>(); UIHits = labelHits.GetComponent <UILabel>(); UIS = labelS.GetComponent <UILabel>(); UIS1 = labelS1.GetComponent <UILabel>(); UIS2 = labelS2.GetComponent <UILabel>(); UIsub = labelsub.GetComponent <UILabel>(); UITotal = labelTotal.GetComponent <UILabel>(); setPosition(); (baseT = transform).localPosition = exitPosition; }
private void Start() { instance = this; this.setPosition(); baseT.localPosition = this.exitPosition; labelChainT = labelChain.GetComponent <UILabel>(); labelHitsT = labelHits.GetComponent <UILabel>(); labelST = labelS.GetComponent <UILabel>(); labelS1T = labelS1.GetComponent <UILabel>(); labelS2T = labelS2.GetComponent <UILabel>(); labelsubT = labelsub.GetComponent <UILabel>(); labelTotalT = labelTotal.GetComponent <UILabel>(); barT = bar.GetComponent <UISprite>(); }
private void OnDestroy() { stylebar = null; }
private void OnAwake() { stylebar = this; }
void OnDestroy() { instance = null; }
void Awake() { instance = this; baseT = base.transform; baseG = base.gameObject; }