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