Example #1
0
        // Use this for initialization
        void Start()
        {
            if (Instance != null)
            {
                throw new UnityException("THERE CAN BE ONLY ONE!");
            }
            Instance = this;

            InitState();
            InitObjectAlpha();
            InitActivationListener();
            InitHandListener();
        }
Example #2
0
        // Use this for initialization
        void Start()
        {
            if (Instance != null) {
                                throw new UnityException ("THERE CAN BE ONLY ONE!");
                        }
                        Instance = this;

                        InitState ();
                        InitObjectAlpha ();
                        InitActivationListener ();
                        InitHandListener ();
        }