コード例 #1
0
    // Use this for initialization
    void Awake()
    {
        if (dialogFile != null)
        {
            dialog = JsonUtility.FromJson <Dialog>(dialogFile.text);
        }
        tooltipOScale = interactTooltip.transform.localScale;
        interactTooltip.transform.localScale = Vector3.zero;

        ss = GetComponent <ShapeShifter>();

        NPC_Source.clip = character_theme;
        NPC_Source.Play();
    }
コード例 #2
0
 private void Start()
 {
     shifter = ShapeManager.Instance.CreateShape(startShape).GetComponent <ShapeShifter>();
 }