Ok @2finger i pass the value to boolean variable RoomLock in AC to true and then send an Object Send Message , using the method Switch(RoomLock) from AC and i get an error : SendMessage Switch(RoomLock) has no receiver! :( but IT WORKS ANYWAY :) str…
yes i did try is and i was getting en error
Engine.GameObject.GetComponent<T>()' cannot be inferred from the usage. Try specifying the type arguments explicitly
This is the script I am using :
Public class ChangeColor : MonoBehaviour {
private void Switch (bool turnOn)
{
if (GetComponent <Light>())
{
GetComponent <Light>().enabled = turnOn;
…
thanks @2finger I tried it and i get an error
SendMessage Switch(true) has no receiver!
UnityEngine.GameObject:SendMessage(String)
I am using object Send message, Message to Send: custom and Method name Switch(true)
I am also trying to do that. Create a kind of alarm light flashing when the AC variable RoomLock is true. So far I am here :
public class ChangeColor : MonoBehaviour {
public bool RoomLock;
public Color colorA;
public Color colorB;
…
Exactly that beowulfkaine.
I did the icons on photoshop and their size set in AC
This demo is just to test all the features and issues of making a full game with a specific plot
Great stuff!!!! Bravo @Chris I would like to ask though is it ok to just download the upgrade straight on to the old version or there is a safer procedure to do this without spoiling ones project?
Thank you so much for the help. This is what i did. And i get an error on line 13 which is yellow
public class AlarmOn : MonoBehaviour {
bool RoomLock;
public Transform light;
// bool light = true;
// Use this for initialization
…