Esempio n. 1
0
 public void Init(BeardModelHandler model)
 {
     _toolCollider = GetComponent <ColliderTool>();
     _toolCollider.Init(new GameObject[] { model._beardScar });
     _model = model;
     ToolCollider.OnToolStart.AddListener(OnToolStart);
     ToolCollider.OnToolEnd.AddListener(OnToolEnd);
 }
Esempio n. 2
0
 public void Init(BeardModelHandler model)
 {
     _state1.enabled = true;
     _state2.enabled = false;
     _toolCollider   = GetComponent <ColliderTool>();
     _toolCollider.Init(new GameObject[] { model._beardFur });
     _model = model;
     ToolCollider.OnToolStart.AddListener(OnToolStart);
     ToolCollider.OnToolEnd.AddListener(OnToolEnd);
 }
Esempio n. 3
0
 public void Init(BeardModelHandler model)
 {
     _toolScribble = GetComponent <ScribbleTool>();
     _toolScribble.Init(new RenderTexturePainter[] { model._beardFrontPainter, model._beardMiddlePainter, model._beardBackPainter }, null);
     _toolCollider = GetComponent <ColliderTool>();
     _toolCollider.Init(new GameObject[] { model._beardMessy, model._beardRed, model._beardScar });
     _model = model;
     ToolScribble.OnToolStart.AddListener(OnToolStart);
     ToolScribble.OnToolEnd.AddListener(OnToolEnd);
 }
Esempio n. 4
0
 public void Init(BeardModelHandler model)
 {
     _toolCollider = GetComponent <ColliderTool>();
     _toolCollider.Init(new GameObject[] { model._beardMessy });
     _toolScribble = GetComponent <ScribbleTool>();
     _toolScribble.Init();
     _markScissorLeftRotate  = _scissorLeft.localEulerAngles;
     _markScissorRightRotate = _scissorRight.localEulerAngles;
     _model = model;
     ToolCollider.OnToolStart.AddListener(OnToolStart);
     ToolCollider.OnToolEnd.AddListener(OnToolEnd);
 }
Esempio n. 5
0
 public void Init(BeardModelHandler model)
 {
     _toolScribble = GetComponent <ScribbleTool>();
     RenderTexturePainter[] arrayPainter = null;
     if (_shape == Shape.Round)
     {
         arrayPainter = new RenderTexturePainter[] { model._beardFrontPainter, model._beardMiddlePainter };
     }
     else if (_shape == Shape.Sharp)
     {
         arrayPainter = new RenderTexturePainter[] { model._beardFrontPainter };
     }
     _toolScribble.Init(arrayPainter, null);
     _toolCollider = GetComponent <ColliderTool>();
     _toolCollider.Init(new GameObject[] { model._beardMessy });
     _model = model;
     ToolScribble.OnToolStart.AddListener(OnToolStart);
     ToolScribble.OnToolEnd.AddListener(OnToolEnd);
 }