예제 #1
0
 private void Update()
 {
     if (flaggedForDoT)
     {
         DoTBehavior();
     }
     if (GetComponent <Renderer>().IsVisibleFrom(Camera.main))
     {
         healthBarControls.Show();
     }
     else
     {
         healthBarControls.Hide();
     }
 }