A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Man, if I could, I would buy you a few beers.. I really can't thank you enough..
Bro! It's working!
Yes, it's working in that, if I select the second team, it prints: "p = 2" Then it moves on looking to do something with the component, but it's...
Gettin' somewhere: [ATTACH]
public GameObject player01; void Example () { player01 = GameObject.Find ("player01"); } void Start() { int p1 =...
I'm getting an error with that script though for the "public gameObject player01;" [ATTACH]
using System.Collections; using System.Collections.Generic; using UnityEngine; public class playerOneGet : MonoBehaviour { public gameObject...
So far, nothing is working in the second scene. I am having a script issue with referring to the gameobject..
Like this: public GameObject PlayerOne; public class playerOneGet : MonoBehaviour { void Start() { if (PlayerPrefs.HasKey ("Player...
If my gameObject is labeled as: player01, do I write it like this: "public GameObject player01;" ?
Yes, the gameObject that I want to modify the Sprite asset for exists only in the second scene.
Think I found how to reference it. BTW, I really do appreciate all your help.
I've been trying to find a way to reference the already existing one, do you know where/how to do it?
Plus, I don't want it to create a new one, I just want it to update the existing..
I need to set a new print statement to make sure it's passing both variables.
The other issue is, when I tell it "new GameObject", is it really creating a new object or updating the already existing player01 game object?
Well I had it set to play with preset teams, but had to add more functionality for the project, so I thought giving a player, team options, would...
I've added a second method for player 2 that continues down the int values: 5,6,7,8 since I used 1,2,3,4 for player one. Hope that make sense. As...
How could I write a script to use an array from the assets in Resources.Load ?
I should create two different scripts for each player in terms of the testOut script correct? The console only prints the number of player two...