void 给振子加能量(AT振子原型 振子) { if (振子 == null) { return; } 振子.AddEnergy(_Energy); Vector3 pos = 振子.transform.position; pos.z -= 8.0f; AT文本信息反馈.显示文本信息(_Energy.ToString(), pos, "Standard_Black", 1.5f, 40); Destroy(gameObject); }
// Use this for initialization void Start() { if (_信息反馈器 == null) { _信息反馈器 = this; } else { Destroy(this); } if (_RTF == null) { _RTF = GetComponent <RectTransform> (); } }