private void FaceOneAnother() { RectTransform t; _protester.WalkTo(_protesterPos, 10); _police.WalkTo(_policePos, 10); }
private void SpawnProtestor() { Protester p = GameObject.Instantiate <Protester>(Resources.Load <Protester>("Protester")); p.transform.SetParent(_protestorSpawnRoot.transform, false); _currentlySpawnedProtesters.Add(p); Vector2 pos = new Vector2(_protestorsGatherArea.anchoredPosition.x - _gatherAreaSize.x * 50, _protestorsGatherArea.anchoredPosition.y - _gatherAreaSize.y * 50); pos.x += _gatherAreaSize.x * (100 * UnityEngine.Random.value); pos.y += _gatherAreaSize.y * (100 * UnityEngine.Random.value); p.WalkTo(pos, 15); }