// Use this for initialization void Start() { plataformaAtiva = plataforma.GetComponent <ActivePlatform>(); apertado = false; //renderer = GetComponent<Renderer>(); anim = GetComponent <Animator>(); if (travado) { renderer.material.SetColor("_Color", Color.blue); } }
// Use this for initialization void Start() { alavanca = transform.GetChild(0).gameObject; alavancaTravada = transform.GetChild(1).gameObject; plataformaAtiva = plataforma.GetComponent <ActivePlatform>(); if (travado) { alavanca.SetActive(false); alavancaTravada.SetActive(true); } }
public string GetPlatformSuffix(TargetPlatform?platform = null) { return("." + (platform?.ToString() ?? ActivePlatform.ToString())); }