La recherche a retourné 5 résultats

par wudang64
07 Mars 2021 14:36
Forum : Scripting
Sujet : [RESOLU]Débutant cherche solution architecture script.
Réponses : 5
Vues : 2303

Re: Débutant cherche solution architecture script.

C'est bon j'ai réussi. J'ai déclaré le tag dans le script du GameObject a bouger. gameObject.tag = "Player"; Puis remplir la fonction on click avec: GameObject.FindGameObjectsWithTag() public void clickRightBut() { GameObject[] players; players = GameObject.FindGameObjectsWithTag("Player"); foreach(...
par wudang64
07 Mars 2021 12:26
Forum : Scripting
Sujet : [RESOLU]Débutant cherche solution architecture script.
Réponses : 5
Vues : 2303

Re: Débutant cherche solution architecture script.

Merci ! Super merci Max je vais bosser dessus. Merci encore et bonne journée.
par wudang64
07 Mars 2021 00:31
Forum : Scripting
Sujet : [RESOLU]Débutant cherche solution architecture script.
Réponses : 5
Vues : 2303

Re: Débutant cherche solution architecture script.

Voici le script de mon button avec la fonction on click. public class ButtonSc : MonoBehaviour { [SerializeField] public GrassSc grassSc; public void clickRight() { grassSc.transform.position += new Vector3(1, 1, 0); Debug.Log(grassSc.transform.position); } ] J'ai donc accès à mon Object Grass et mo...
par wudang64
06 Mars 2021 20:52
Forum : Présentation des membres
Sujet : Presentation Wudang
Réponses : 3
Vues : 2007

Presentation Wudang

Bonjour tout le monde, J'ai découvert Unity il y a une semaine, je cherche a recrée un jeu basique 2d auquel j'avais joué il y a 10ans. On pars d'une cellule et on choisit les actions que la cellule va faire ( dupliquer, déplacement, attaque, défense ....). Les actions sont limités un 5 par tour. Br...
par wudang64
06 Mars 2021 20:26
Forum : Scripting
Sujet : [RESOLU]Débutant cherche solution architecture script.
Réponses : 5
Vues : 2303

[RESOLU]Débutant cherche solution architecture script.

Bonjour, je suis débutant, je suis plein de tuto pour apprendre, mais la je bloque depuis 2 jours. J’instancie un player gameObject dans le script creationMap à partir d'un prefabs. GameObject newPlayer = player; Instantiate(newPlayer); newPlayer.transform.position = new Vector3(1,1,0); Dans le Scri...

Aller sur la recherche avancée