Example #1
0
 // Use this for initialization
 IEnumerator Start()
 {
     yield return null;
     algor = GetComponent<WidgetDetectionAlgorithm> ();
     standardText = textField.text;
     algor.minLength = 0;
     algor.maxLength = Mathf.Infinity;
     StartCoroutine (WidgetFindAlgorithm());
 }
    void Start()
    {
        _widgetAlgorithm = WidgetDetectionAlgorithm.instance;
        _myTransform = transform;
        _myAudio = GetComponent<AudioSource>();
        _toolMount = _myTransform.FindChild("ToolMount");
        if(_toolMount.childCount == 1)
            _tool = _toolMount.transform.GetChild(0).gameObject;

        if(Application.isEditor)
            ShowTool();												//Hide the tool in the beginning, until widget is placed on the board
        //Debug.LogError("Test");

        Invoke("AssignNetworkObject", 1);
    }
Example #3
0
 void Start()
 {
     _widgetAlgorithm = WidgetDetectionAlgorithm.instance;
     _myTransform = transform;
     _toolMount = _myTransform.FindChild("ToolMount");
 }
 public void Awake()
 {
     instance = this;
 }