Esempio n. 1
0
    public override void read(BinaryReader r)
    {
        time         = r.ReadSingle();
        loopInterval = r.ReadSingle();
        loopTimes    = r.ReadInt32();
        state        = r.ReadInt32();
        mask         = r.ReadInt32();
        int n = r.ReadInt32();

        for (int i = 0; i < n; ++i)
        {
            int       nodeType = r.PeekChar();
            SkillNode sn       = SkillNode.createNode((SkillNode.Type)nodeType);
            sn.read(r);
            nodes.Add(sn);
            #if UNITY_EDITOR
            sn.action = this;
            #endif
        }
    }