Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » Tutorials » Changing Variables from different script (SendMessage)

Changing Variables from different script (SendMessage)

View previous topic View next topic Go down  Message [Page 1 of 1]

Hi everyone! Today you are going to learn how to send messages to another script/gameobject.
so what you want is to change this variable A from 0 to 1.
So you want to send it to a player transform/gameobj
var playerobj : Transform;
function Start() {
2nd Script
var A = 0;
function WhatCoroutineNameIs(mynum : int) {
   A += mynum;

That is the basics of SendMessage! Thanks for reading. please leave a comment of what tutorial i should do next!
Thx Wooden

View user profile
Hey wooden_sword thanks for sharing your mini tut! I fixed it, but please in the future when you put code at the start and the end use these tags: [c ode][/cod e] (but w/o spaces) or just press the code button when making a post.

View user profile http://www.youtube.com/user/misterninjaboy
Ok thanks for the help MisterNinjaBoy

View user profile
I am So EXTREMELY sorry for my long absence and not coming on unityninja! please forgive me?
~sincerely wooden

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum