Jump to content
Unity Insider Forum

HilfeBitte

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About HilfeBitte

  • Rank
    Newbie
  1. hoffe das Ist das was du Brauchst using System.Collections; using System.Collections.Generic; using System.Security.Cryptography; using UnityEngine; public class LevelGenereter : MonoBehaviour { [SerializeField] private Transform levelPart_Start; [SerializeField] private Transform levelPart_1; private void Awake() { Transform lastLevelPartTransform; lastLevelPartTransform = SpawnLevelPart(levelPart_Start.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); } private Transform SpawnLevelPart(Vector3 spawnPosition) { Transform levelPartTransform = Instantiate(levelPart_1, spawnPosition, Quaternion.identity); return levelPartTransform; } }
  2. Mir wird immer diese Fehlermeldung Angezeigt aber ich weiß nicht warum Würde mich über eine Antwort freuen using System.Collections; using System.Collections.Generic; using System.Security.Cryptography; using UnityEngine; public class LevelGenereter : MonoBehaviour { [SerializeField] private Transform levelPart_Start; [SerializeField] private Transform levelPart_1; private void Awake() { Transform lastLevelPartTransform; lastLevelPartTransform = SpawnLevelPart(levelPart_Start.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); lastLevelPartTransform = SpawnLevelPart(lastLevelPartTransform.Find("EndPosition").position); } private Transform SpawnLevelPart(Vector3 spawnPosition) { Transform levelPartTransform = Instantiate(levelPart_1, spawnPosition, Quaternion.identity); return levelPartTransform; } }
×
×
  • Create New...