// Use this for initialization void Start() { parentJunkbot = GetComponentInParent <Junkbot>(); cannonInputButton = "Cannon" + parentJunkbot.PlayerNumber; audioSource = GetComponent <AudioSource>(); }
//functions //This script sets everything up for the junkbot and connects it to the player number public void Setup() { //set the reference junkbot = Instance.GetComponent <Junkbot>(); ColoredPlayerText = "<color=#" + ColorUtility.ToHtmlStringRGB(PlayerColor) + ">PLAYER " + PlayerNumber + "</color>"; junkbot.PlayerNumber = PlayerNumber; }
// Use this for initialization void Start() { parentJunkbot = GetComponentInParent <Junkbot>(); audioSource = GetComponent <AudioSource>(); }
// Use this for initialization void Awake() { junkbotParent = GetComponentInParent <Junkbot>(); }
// Use this for initialization void Start() { parentJunkbot = GetComponentInParent <Junkbot>(); hammerInputAxis = "Hammer" + parentJunkbot.PlayerNumber; audioSource = GetComponent <AudioSource>(); }