コード例 #1
0
 void Start()
 {
     _grid = GameObject.FindGameObjectWithTag("Grid").GetComponent<Grid>();
     _buttonManager = GameObject.FindGameObjectWithTag("ButtonManager").GetComponent<ButtonManager>();
 }
コード例 #2
0
 private void Start()
 {
     _grid = GameObject.FindGameObjectWithTag("Grid").GetComponent<Grid>();
     Debug.Assert(_grid != null);
     _renderer = GetComponent<Renderer>();
     _velocity = initialVelocity;
     DrawVectors = _DrawVectors;
 }