コード例 #1
0
ファイル: Fireman.cs プロジェクト: sherry-zkuai/flashPoint
    public Fireman(String name, Colors color, GameObject s, GameObject firemanplusvictim, int in_x, int in_z, GameManager gm, Role role, POIManager
                   pOIManager, HazmatManager hazmatManager)
    {
        this.name          = name;
        this.color         = color;
        this.s             = s;
        this.fireandvictim = firemanplusvictim;
        this.currentX      = in_x;
        this.currentZ      = in_z;
        this.gm            = gm;
        setRole(role);
        Debug.Log("FreeAP: " + FreeAP);
        this.FreeAP          = AP + savedAP;
        this.remainingSpecAp = this.specialtyAP;

        this.pOIManager     = pOIManager;
        this.hazamatManager = hazmatManager;


        //if (string.Equals(level, "Experienced"))
        //{
        //    setRole(role);
        //}
    }
コード例 #2
0
 public Hazmat(HazmatManager hm, HazmatStatus status = HazmatStatus.Hazmat)
 {
     this.hm     = hm;
     this.prefab = hm.gm.hazPrefabs[(int)status];
     this.status = status;
 }