Exemple #1
0
        void OnDisable()
        {
            LinePathManager lpm = LinePathManager.Instance;

            if (lpm != null)
            {
                lpm.Remove(this);
            }
        }
Exemple #2
0
        void OnEnable()
        {
            LinePathManager lpm = LinePathManager.Instance;

            if (lpm != null)
            {
                lpm.Add(this);
            }
        }