Hero.setCurrentRespawnPoint C# (CSharp) 메소드

setCurrentRespawnPoint() 개인적인 메소드

private setCurrentRespawnPoint ( Collider col ) : void
col Collider
리턴 void
  void setCurrentRespawnPoint(Collider col)
  {
      if(null != col.gameObject.GetComponent<RespawnPoint>()
           && (null == _lastCheckpoint
            || _lastCheckpoint.name != col.gameObject.name))
      {
          _lastCheckpoint = col.gameObject;
          duplicateCell();

          //RedMetrics reporting
          //TODO put equiped devices in customData of sendEvent
          RedMetricsManager.get ().sendEvent(TrackingEvent.REACH);
      }
  }