Exemplo n.º 1
0
 public void setPoolCue(PoolCue cue)
 {
     if (m_cue && cue != m_cue)
     {
         m_cue.gameObject.SetActive(false);
     }
     else
     {
         cue.gameObject.SetActive(true);
     }
     m_cue = cue;
 }
Exemplo n.º 2
0
 public virtual void Awake()
 {
     m_cue = (PoolCue)GameObject.FindObjectOfType(typeof(PoolCue));
     m_balls= (PoolBall[])GameObject.FindObjectsOfType(typeof(PoolBall));
     m_ball =  gameObject.GetComponentInChildren<WhiteBall>();
 }
Exemplo n.º 3
0
 public void setPoolCue(PoolCue cue)
 {
     if(m_cue && cue!=m_cue)
     {
         m_cue.gameObject.SetActive(false);
     }else{
         cue.gameObject.SetActive(true);
     }
     m_cue = cue;
 }
Exemplo n.º 4
0
 public virtual void Awake()
 {
     m_cue   = (PoolCue)GameObject.FindObjectOfType(typeof(PoolCue));
     m_balls = (PoolBall[])GameObject.FindObjectsOfType(typeof(PoolBall));
     m_ball  = gameObject.GetComponentInChildren <WhiteBall>();
 }