Hero.setCurrentRespawnPoint C# (CSharp) Method

setCurrentRespawnPoint() private method

private setCurrentRespawnPoint ( Collider col ) : void
col Collider
return 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);
      }
  }