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

Unable to inherit simpily

$
0
0
Sorry to post so soon, but this isn't an easy to find answer! I'm trying to inherit( in it's most basic form..) but it's not finding my variable and i'm at a loss why. This is how i've always done it, my other scripts can currently do it too! enemy.cs using UnityEngine; using System.Collections; public class enemy : MonoBehaviour { public int myInt = 4; } monster.cs using UnityEngine; using System.Collections; public class monster : enemy { }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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