Exemplo n.º 1
0
 private void Start()
 {
     if (PhotonNetwork.player.IsLocal)
     {
         SPing     = SmallPing.GetComponent <PingSignSmall>();
         tex       = GetComponent <RawImage>().texture;
         r         = GetComponent <RawImage>().rectTransform.rect;
         TargetObj = GameObject.FindGameObjectWithTag("PlayerA*Target");
         if (!TargetObj)
         {
             TargetObj = GameObject.FindGameObjectWithTag("PlayerA*Target");
         }
         player      = GameObject.FindGameObjectWithTag("Player");
         playerSpell = player.GetComponent <PlayerSpell>();
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     SPing = SmallPing.GetComponent <PingSignSmall>();
     tex   = GetComponent <RawImage>().texture;
     r     = GetComponent <RawImage>().rectTransform.rect;
 }