Exemplo n.º 1
0
    void Start()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        if (ID == NPCTracker.ID.None)
        {
            //ghost cat for unknown NPCs
            spriteRenderer.sprite = NPCTracker.GetSprite(NPCTracker.ID.Cat);
            spriteRenderer.color  = new Color(1.0f, 1.0f, 1.0f, 0.5f);
        }
        else
        {
            spriteRenderer.sprite = NPCTracker.GetSprite(ID);
        }

        if (!homeCollider)
        {
            Debug.Log("NPC can't move without a home collider");
            return;
        }
        InitSpeech();
        MoveNext();
    }
 void Start()
 {
     Accused.sprite = NPCTracker.GetSprite(NPCTracker.Accused);
     Culprit.sprite = NPCTracker.GetSprite(NPCTracker.Culprit);
 }