コード例 #1
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("Doubled HitChanceInfo, there can be only one!");
         return;
     }
     instance     = this;
     theText      = GetComponentInChildren <Text>();
     theText.text = "";
     TurnOff();
 }
コード例 #2
0
 void Start()
 {
     hitChanceInfo = FindObjectOfType <UIHitChanceInformation>();
 }
コード例 #3
0
 protected override void OnStart()
 {
     hitInfo          = FindObjectOfType <UIHitChanceInformation>();
     myShootingScript = GetComponent <ShootingScript>();
 }