Пример #1
0
 // Use this for initialization
 void Start()
 {
     sliderDP             = transform.FindChild("DP").GetComponent <Slider>();
     sliderPP             = transform.FindChild("PP").GetComponent <Slider>();
     t_mgr                = oPlayer.GetComponent <T2.Manager>();
     imageHP              = transform.FindChild("DpDanger").GetComponent <Image>();
     trHighlight          = transform.FindChild("PpHighlight").GetComponent <RectTransform>();
     imageHighlight       = trHighlight.GetComponent <Image>();
     imageHighlight.color = Color.clear;
 }
Пример #2
0
 void OnTriggerEnter(Collider coll)
 {
     if (coll.gameObject.tag == Tags.Player)
     {
         T2.Manager mgr = coll.GetComponent <T2.Manager>();
         mgr.SetDP(100);
     }
     //else
     //sForObject.OnTriggerDamage(coll, gameObject, iHp);
 }
Пример #3
0
    float fFadeoutSpeed = 0.5f; // 페이드아웃 속력

    // Use this for initialization
    void Start()
    {
        t_mgr                = oPlayer.GetComponent <T2.Manager>();
        sliderAP             = oAim.GetComponentInChildren <Slider>();
        imageEmptyAP         = oEmptyAP.GetComponent <Image>();
        textAp               = oEmptyAP.transform.FindChild("Text").GetComponent <Text>();
        imageEP              = sliderEP.GetComponentsInChildren <Image>();
        textEp               = sliderEP.GetComponentInChildren <Text>();
        sliderDP             = oDpPp.transform.FindChild("DP").GetComponent <Slider>();
        sliderPP             = oDpPp.transform.FindChild("PP").GetComponent <Slider>();
        imageHP              = oDpPp.transform.FindChild("DpDanger").GetComponent <Image>();
        trHighlight          = oDpPp.transform.FindChild("PpHighlight").GetComponent <RectTransform>();
        imageHighlight       = trHighlight.GetComponent <Image>();
        trPpHandle           = sliderPP.transform.FindChild("PpHandle").GetComponent <RectTransform>();
        imageHighlight.color = Color.clear;
        iPrePp               = 100;
    }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     sliderAP = transform.GetComponentInChildren <Slider>();
     t_mgr    = oPlayer.GetComponent <T2.Manager>();
     image    = gameObject.GetComponentsInChildren <Image>();
 }