Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

error CS1061: Type `UnityEngine.Networking.PlayerController' does not contain a definition for `transform' and no extension method `transform' of type

$
0
0
using System.Collections; using UnityEngine; using UnityEngine.Networking; public class LevelManager: MonoBehaviour { public GameObject currentCheckpoint; private PlayerController player; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void RespawnPlayer() { Debug.Log ("Player Respawn"); player.transform.position = currentCheckpoint.transform.position; } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>