示例#1
0
    // 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);
        }
    }
示例#2
0
    // 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);
        }
    }
示例#3
0
 public string GetPlatformSuffix(TargetPlatform?platform = null)
 {
     return("." + (platform?.ToString() ?? ActivePlatform.ToString()));
 }