public TargetSystemView(Battle.Battle battle, ITargetSystem targetSystem) { this.battle = battle; this.Background = new SolidColorBrush(Colors.BlueViolet); this.targetSystem = targetSystem; targetSystem.OnShowing += OnShowing; OnShowing(targetSystem.Showing); }
private void Awake() { // Binds TargetSystem = GetComponent <ITargetSystem>(); // The player is our parent _playerTransform = transform.parent.transform; // We detach the bulletpool so it will not effect bullets positions BulletPool.transform.parent = GameObject.Find("/BulletsPools").transform; // HotFix - for some reason the bullet pool changing its transform BulletPool.transform.SetPositionAndRotation(Vector3.zero, Quaternion.identity); }